spa-server
spa-server copied to clipboard
Extensible Node Web Server to run your SPA's (Single Page Applications)
http://localhost:1100 is run on spa-server, i try to use window.fetch to get JSON file, but occur error: Access to fetch at 'http://localhost:1100/examples.json' from origin 'http://localhost:1112' has been blocked by CORS...
how to use Content-Encoding:gzip such as ``` const serverFactory = require('spa-server'); const port = process.env.PORT || 7200 const server = serverFactory.create({ path: './dist', port: port, fallback: '/index.html' }); //gzip css...
Added CLI frontend #7 , updated dependencies and CI Node version.
I see in #3 that https is supported, but there's nothing in the documentation about how to use it, reading the code it's quite clear, but it should be in...
It might be nice to out of the box have a pure CLI frontend like [http-server](https://www.npmjs.com/package/http-server) that could be globally installed for quick bootstrapping new projects.
How can I serve my static images or other media like video from different folder (i.e. different from `path` option) ?