-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue: undefined path in production mode #188
Comments
Try v8.0.0-alpha.2 |
It's the same issue, my dist file in {
"base": "/",
"root": "/mnt/dev/src/workspace/frontend/client",
"build": {
"assetsDir": "assets"
},
"fastify": {
"clientOutDir": "dist/client",
"serverOutDir": "dist/server"
}
} As you can see |
Gotcha. I just tested this out and the @galvez I believe the issue is within the |
@zanmato are you using SSR? |
Yes, both SSR and CSR |
I've already fixed a couple of issues in the vue rendering file in my PR #187 |
Prerequisites
Fastify version
5.0.0
Plugin version
1.0.0
Node.js version
22
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
24.04
Description
When running in production and using CACHE_DIR, outDir will be unset in the generated dist config, causing an undefined error here: https://github.com/fastify/fastify-vite/blob/dev/packages/fastify-vue/routing.js#L114-L115
However I'm not sure if it should be changed from build.outDir to fastify.clientOutDir (and remove the client/ prefix of the html path) or to make the dist config write the outDir value?
Link to code that reproduces the bug
No response
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: