binarymelon
binarymelon
NNuxt
Created by creathir on 2/7/2024 in #❓・help
BaseURL + Uncommon Configuration With Reverse Proxy
Anyway, disabling ssr got around that issue, but @creathir I'm guessing this is only intended to work for prod builds? All my vendor modules still don't have the prefix. I guess a little bit of background. I'm trying to run this in dev mode on a self hosted code-server which is behind a reverse proxy. code-server than proxies the server to subdomain.mydomain.com/proxy/3000.
14 replies
NNuxt
Created by creathir on 2/7/2024 in #❓・help
BaseURL + Uncommon Configuration With Reverse Proxy
@manniL / TheAlexLichter
14 replies
NNuxt
Created by creathir on 2/7/2024 in #❓・help
BaseURL + Uncommon Configuration With Reverse Proxy
Isn't router.options.ts the client side router?
14 replies
NNuxt
Created by creathir on 2/7/2024 in #❓・help
BaseURL + Uncommon Configuration With Reverse Proxy
@creathir Not sure if I missed something but the router options are throwing the following error.
500
window is not defined

at Module.createWebHistory (./node_modules/vue-router/dist/vue-router.mjs:714:31)
at Object.history (./app/router.options.ts:8:34)
at setup (./node_modules/nuxt/dist/pages/runtime/plugins/router.js:52:61)
at ./virtual:nuxt:/development/binarymelon.com-nuxt/binarymelon.com/.nuxt/plugins/server.mjs:38:89
at Module.executeAsync (./node_modules/unctx/dist/index.mjs:111:19)
at setup (./virtual:nuxt:/development/binarymelon.com-nuxt/binarymelon.com/.nuxt/plugins/server.mjs:38:65)
at ./node_modules/nuxt/dist/app/nuxt.js:116:60
at fn (./node_modules/nuxt/dist/app/nuxt.js:192:44)
at Object.callAsync (./node_modules/unctx/dist/index.mjs:68:55)
500
window is not defined

at Module.createWebHistory (./node_modules/vue-router/dist/vue-router.mjs:714:31)
at Object.history (./app/router.options.ts:8:34)
at setup (./node_modules/nuxt/dist/pages/runtime/plugins/router.js:52:61)
at ./virtual:nuxt:/development/binarymelon.com-nuxt/binarymelon.com/.nuxt/plugins/server.mjs:38:89
at Module.executeAsync (./node_modules/unctx/dist/index.mjs:111:19)
at setup (./virtual:nuxt:/development/binarymelon.com-nuxt/binarymelon.com/.nuxt/plugins/server.mjs:38:65)
at ./node_modules/nuxt/dist/app/nuxt.js:116:60
at fn (./node_modules/nuxt/dist/app/nuxt.js:192:44)
at Object.callAsync (./node_modules/unctx/dist/index.mjs:68:55)
14 replies
NNuxt
Created by creathir on 2/7/2024 in #❓・help
BaseURL + Uncommon Configuration With Reverse Proxy
@creathir did you ever find a solution for this?
14 replies