-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Nuxt Bridge app.baseURL doesn't work with i18n module #16
Comments
@danielroe I made a mistake at my initial issue: |
To configure the base path with Nitro, don't configure For example: yarn build
NUXT_APP_BASE_URL=/d node .output/server/index.mjs Or: import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
- router: {
- base: '/d/'
- },
+ app: {
+ baseURL: '/d/'
+ },
}) Let me know if that resolves it for you. |
@danielroe The assets are now resolved and are reachable under We have a Cloudfront which routes all |
The router option should be set dynamically based on the basePath. Perhaps you could share some reproduction code? 🙏 |
Would you open an issue on https://github.com/nuxt-community/i18n-module? 🙏 |
Same issue here. |
yes - also had the problem that my fonts in
|
I also had the same issue. I followed the work around by @sweetpalma and @saraha33. That fixed the issue. Thanks! |
Environment
Darwin
v14.18.1
latest
npm@6.14.15
Webpack
-
-
-
Reproduction
nuxt.config.js
Describe the bug
The base path in nuxt bridge seems to be broken. If I set it to the above
/d/
every preload link in the frontend is set to/d/d/
and all files are also reachable only with this path.It seems the only url which is not affected by this is the one to the header js file in production
What makes the thing worse - because the file lies under
/d/d/
and the whole site is brokenAdditional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: