-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature / enhancementNew feature or requestNew feature or requestvitewontfixThis will not be worked onThis will not be worked on
Description
Describe the problem
When developing my frontend code, I like having my backend serve the dev assets like in production. In webpack, I can do this by configuring the middleware settings. This helps because I can use relative paths from the frontend to the backend, i.e. /api.
Describe the proposed solution
I believe SvelteKit just needs to honor the config "vite.server.middlewareMode = ssr" in svelte.config.js. Though #2232 make this seem like it may be harder to do.
Alternatives considered
I could try doing HTTP proxying from my backend to the frontend, it's just a pain to wire up.
Importance
would make my life easier
Additional Information
No response
Metadata
Metadata
Assignees
Labels
feature / enhancementNew feature or requestNew feature or requestvitewontfixThis will not be worked onThis will not be worked on