-
Notifications
You must be signed in to change notification settings - Fork 25
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
No prerender when baseURL variable is set in vue.config.js #6
Comments
Currently, you'd need to specify the URLs with the Base URL into the array of pages to pre-render. I'd need to somehow be able to get the base URL from the configuration to update the routes array. |
I just tried again with I don't know which server is used to mount the build to allow Puppeter to prerender the page but it seems that this server did not mount the folder on the baseURL so, that's why it cannot access to the assets. I join some screenshot, it might be helpful. |
Do you have a timeline for a release that contains this fix? |
I'll cherrypick the changes into a hotfix release, stay tuned. |
Version 1.0.3 is out, check it out! |
Cheers! The hotfix works like a charm. 👍 |
Version 1.1.0 - Adds support for user post-processing of HTML after pre-rendering #4 - Bundles an `app.html` file which is not prerendered, and should be used as entrypoint for non-prerendered routes #14 - Support multi-page mode (by @snadn) #10 (implementation #11) - Support non-default baseURL (by @snadn) #6 (implementation #9) - Writes configuration using the API `extendPackage` function, which writes to `vue.config.js`. If found, the old configuration will be copied over and converted on `vue invoke` (and read, but not converted on build).
Describe the bug
No prerender are triggered when baseURL variable is set. Build is created as normal as when the plugin is not installed but the console keeps waiting on the sentence "Building for production"
To Reproduce
Steps to reproduce the behavior:
vue create example
cd example
vue add prerender-spa
vue.config.js
file in the root of the projectvue.config.js
with this.npm run build
Expected behavior
Build the project and prerender the project with the correct url
Additional context
Package version: 1.0.2
Vue version: 2.5.17
Vue CLI version: 3.0.1
The text was updated successfully, but these errors were encountered: