Replies: 2 comments 1 reply
-
You can probably set up a proxy in the Vite config. (Your old server still needs to run on some address that can be targeted by the proxy.) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah thanks, this will be useful. But my issue is that the old frontend doesn't load at all when on the dev server. Is there a way to "proxy" from the static/old folder? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I rewrote a frontend project using sveltekit. I also have a link to the old project and I put the old project under static/old. The link is
<a rel="external" href="/old">
when I run
npm run dev
, clicking on the /old link results in empty page (only header & footer) and a server error:however when I run npm run build and go to the build dir and run python -m http.server, the link to /old works.
is there any way to get it to work on the npm run dev server as well?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions