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

Disable SPA handling? #193

Open
kevinrenskers opened this issue Feb 12, 2021 · 1 comment
Open

Disable SPA handling? #193

kevinrenskers opened this issue Feb 12, 2021 · 1 comment

Comments

@kevinrenskers
Copy link

This seems like a great project, but I can't get simple subfolder paths to work for a static HTML website. No JS, no SPA.

Start server with lite-server --baseDir="deploy"

When I then open http://localhost:3002/articles/, I get the home page of the site. I have to specially open http://localhost:3002/articles/index.html to see the page I expected. How can I solve this? Seems like weird behavior? 🤔

@kevinrenskers
Copy link
Author

Aha, this seems to do it.

module.exports = {
  server: {
    middleware: {
      1: null,
    },
  },
};

lite-server --baseDir="deploy" -c "./bs-config.js"

It would be great if this was just a CLI option, but at least it works now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant