Skip to content
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

Have next export work with relative paths #6059

Closed
DaveStein opened this issue Jan 15, 2019 · 2 comments
Closed

Have next export work with relative paths #6059

DaveStein opened this issue Jan 15, 2019 · 2 comments

Comments

@DaveStein
Copy link

DaveStein commented Jan 15, 2019

Feature request

Is your feature request related to a problem? Please describe.

I was excited to see a static site generator in Next. I want to write a prototype of a site, which would end up using Next. I'd love the prototype to be static so I can zip it up and send to someone who isn't tech savvy unzip and run the html. The issue is that someone needs to make the html run on "server" ie serve

Describe the solution you'd like

Allow an option for next export which lets things run without a server. As far as I can tell the main issue is the way things are routed, followed by the way clicking <Link> is counted.

Describe alternatives you've considered

I tried detecting an environment variable to do an update like this:

correctedHref = file:///C:${prefix}${href}/index.html`

That made the href= point at an actual file, however clicking the link did nothing in the app, despite opening the link via source view showing what I wanted.

@timneutkens
Copy link
Member

I recently closed a similar issue to this one as it would involve a lot of work for very minimal gains.

@timneutkens
Copy link
Member

Seems to be a duplicate of #2581

@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants