Remove "/" from all generated built file in ```/out``` folder
Answered
Cuckoo wasp posted this in #help-forum
Original message was deleted.
20 Replies
Cuckoo wasp
This is expected output
why do you want to do this?
the leading slash is added by default because it expects a relative url starting from the domain (like
mywebsite.com/_next)the path is available at
/_next so if you have that tag inside /test for example it will actually fetch /test/_next which doesn't workso don't do this
it's impossible for a reason
Cuckoo wasp
I have a small project to build for the integration with banking system and they require static accessing (file system) to index.html and others routes but next js is actually require a small server to serve those resource which they dont allow me to host. @joulev
then
href="_next/static/.." is going to solve nothingCuckoo wasp
And i found it is possible using Vue.js and now i am stuck what to do next because i dont want to learn Vue.js
you may need to use static export
Answer
then you dont need a running server
Yeah, otherwise Next.js always come with a server, and it will serve static files as well
Cuckoo wasp
this is what it look like if using file system to access.
@fuma Is there any trick ??
you should host these assets in localhost with something like live-server
and please read the docs, it should be the
/out folderCuckoo wasp
I have tried it and working fine.
I just want to know can we config the actual build model of next js.
You can't configure everything, but webpack configurations and some simple settings