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
(if building) upload your .nuxt/dist/client folder to that location on your CDN
(if generating) upload the contents of your dist folder to that location on your CDN
However, yes - it was broken because vercel-builder assumed publicPath would be a directory. Should now be fixed in 0.21.3 but note that you will need to set your publicPath to 'https://mysite.vercel.app/_nuxt/' rather than a custom directory.
Hi,
In a Nuxt app, for some reason, I need all my assets URIs to include the domain.
For example, in the rendered HTML, instead of having
<script src="/_nuxt/286f58c.js">
I would like to have something like:
<script src="https://mysite.vercel.app/_nuxt/286f58c.js">
or
<script src="https://mysite.vercel.app/assets/286f58c.js">
According to the Nuxt doc, I can use the
publicPath
option for that.So I tried this config:
And the generated HTML looks good:
<script src="https://mysite.vercel.app/assets/7155d93.js" defer></script>
However, the assets don't exist in the output, and there is a weird empty
https:
folder instead:With the following config, the problem is exactly the same, no assets in the output...
Can you confirm that it's a bug and not some misunderstanding from my side?
Thanks a lot 👍
The text was updated successfully, but these errors were encountered: