You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: - I was running under 0.3.0 due to #57 not working, so I'm unblocked (although I'm having to go through some gymnastics in order to properly set the flag myself). I think this issue is still valid as a full vue.config.js would be more clear.
The documentation is unclear how exactly to leverage VUE_CLI_SSR_TARGET properly. It introduces a variable api that is unexplained. Could we expand the context to a full vue.config.js file that contains the necessary webpack configuration?
My use case is having a different URL used in a dockerized app -- the client bundle uses the full domain, while the server bundle uses the internal service name which is faster.
Here's my stripped down vue.config.js for reference:
constpath=require('path')constfs=require('fs')constexpress=require('express')module.exports={devServer: {port: 3000},pluginOptions: {ssr: {host: "0.0.0.0",port: 3000,// Entry for each targetentry: target=>`./src/entry-${target}.ts`,},},configureWebpack: config=>{console.log(`configure VUE_CLI_SSR_TARGET: ${process.env.VUE_CLI_SSR_TARGET}`)returnconfig;},chainWebpack: config=>{console.log(`chain VUE_CLI_SSR_TARGET: ${process.env.VUE_CLI_SSR_TARGET}`)returnconfig}}
Uh oh!
There was an error while loading. Please reload this page.
EDIT: - I was running under 0.3.0 due to #57 not working, so I'm unblocked (although I'm having to go through some gymnastics in order to properly set the flag myself). I think this issue is still valid as a full vue.config.js would be more clear.
The documentation is unclear how exactly to leverage
VUE_CLI_SSR_TARGET
properly. It introduces a variableapi
that is unexplained. Could we expand the context to a full vue.config.js file that contains the necessary webpack configuration?My use case is having a different URL used in a dockerized app -- the client bundle uses the full domain, while the server bundle uses the internal service name which is faster.
Here's my stripped down vue.config.js for reference:
And the console output:
The text was updated successfully, but these errors were encountered: