#Remove "/" from all generated built file in ```/out``` folder

21 messages · Page 1 of 1 (latest)

celest owlBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

viral latch
#

This is expected output

tough marsh
#

why do you want to do this?

spare mesa
#

the leading slash is added by default because it expects a relative url starting from the domain (like mywebsite.com/_next)

tough marsh
#

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 work

#

so don't do this

#

it's impossible for a reason

viral latch
#

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. @tough marsh

tough marsh
#

then href="_next/static/.." is going to solve nothing

viral latch
#

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

tough marsh
#

you may need to use static export

#

then you dont need a running server

spare mesa
#

Yeah, otherwise Next.js always come with a server, and it will serve static files as well

viral latch
#

this is what it look like if using file system to access.

#

@spare mesa Is there any trick ??

spare mesa
#

you should host these assets in localhost with something like live-server

#

and please read the docs, it should be the /out folder

viral latch
#

I have tried it and working fine.

#

I just want to know can we config the actual build model of next js.

spare mesa
#

You can't configure everything, but webpack configurations and some simple settings