-
Notifications
You must be signed in to change notification settings - Fork 1
with the most basic example only file directory is shown #4
Comments
I had the same issue |
A forgotten on my part in the readme sorry. You have to add an option in the nuxt.config.js file build: {
filenames: {
app: '[name].js',
chunk: '[name].js'
}
} I put this option mandatory because i need to determine which output file is app.js, commons.js, runtime.js and files from different pages. So it's much simpler if at the output I have the name of the files rather than a hash. And don't forget to change the way the object is returned. export default {
...
} To module.exports = () => {
return { ... }
} |
@bluebeel Thank you very much! |
@bluebeel could you maybe give a hint at the docs how to configure the routes section of the now.json file? Currently I've seen that you enabled some for the more advanced example, the basic example does not have a routes section. I'm quite confused if its necessary to set up or if I can leave it empty. |
You must use routes if you manage dynamic routes. This is the difference between the basic and complex example. In the basics, I have 2 "static" paths ( The routes section accept regex patterns (PCRE).
now uses index as a default since he is there. I hope it's clear otherwise as soon as I can I'll do a more complete example to explain what can be done with the routes section. |
@bluebeel I followed your advised. But for me nothing changed, I still only receive a directory listing. Does it has to do that I use a |
@dohomi can you make a public deployment if possible? Does changing the |
@bluebeel Ok I disabled all the personal config and now it built successful. There might be some issues with my config - I will enable step by step and report back which was causing the issue |
ok open a new issue if needed |
Hello,
I just tried out your builder but for me the most basic example does not work as expected:
I only have one index.vue file inside of pages and instead of render the HTML only a file directory is shown: https://nuxt-storyblok-naturheilpraxis-lfiz4w3v2.now.sh/
Is there some configuration missing? This is the configuration part of nuxt.config.js:
It seems the index.html file is not being generated by the builder.. only the _nuxt/[*].js files.
The text was updated successfully, but these errors were encountered: