Questions tagged [serve]

This minimalistic command-line file/directory server can be set up in just 5 minutes using connect. Drawing inspiration from nodejitsu's http-server, it aims to showcase the ease and versatility of connect as a modular server platform.

Tips for updating the route using NPM serve

Hey there! I'm currently experimenting with the serve npm package. My goal is to serve static files on a different route. Here's an example of the directory structure I want to serve: index.html index.js helpers helper.js I've been trying to figure ou ...

Issue with NPM serve rewriting paths

My server configuration (serve.json) is as follows: { "headers": [ { "source": "**/**", "headers": [ { "key": "Content-Security-Policy", "value&q ...

Steps to halt the npm serve command

I have created React Apps: npm run build and globally installed serve package: npm install -g serve and executed it: serve -s build How can I stop it? I attempted serve help but cannot find a stop option Options: -a, --auth Serve behind bas ...

Serving static files in Next.js with specific extensions without triggering a download

I'm facing an issue where I need to serve the stellar.toml file in domain/.well-known/stellar.toml with the content type as text/plain. The current configuration works only when the stellar file is saved without an extension. It is essential for me t ...

Vue.js is experiencing difficulties in rendering the project

After trying to install a Vue.js package, I encountered errors which prompted me to remove it. However, even after removal, I am still facing difficulties serving my project. Here is the log for reference: Click here ...

What is the best way to handle subfolders?

I have a question about serving different directories in my dist folder using vercel/serve. Click here to learn more How can I set it up so that localhost/foo will serve the build from the foo directory, and localhost/bar will serve the build from the bar ...