Questions tagged [serve]

Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.

272 questions
3
votes
3 answers

301 Moved Permanently on post ajax requests in laravel

I upload a laravel project on server; When I run all the ajax post request request run like this: Request URL: http://example.com/user/register/ Request Method: POST Status Code: 301 Moved Permanently Then this run: Request URL:…
Zahra Badri
  • 1,656
  • 1
  • 17
  • 28
3
votes
1 answer

NPM serve rewrites issue

I have this configuration for serve (serve.json): { "headers": [ { "source": "**/**", "headers": [ { "key": "Content-Security-Policy", "value": "frame-ancestors 'none'" }, { …
Ionut Cirja
  • 107
  • 1
  • 8
3
votes
2 answers

ReactJS: How to kill `serve -s build`

Serve is a library that allows you to serve your React build folder similar to npm start Create an app with npx create-react-app . Then run the following the following to create build and serve the app npm run build npm install -g serve serve -s…
Michael Nelles
  • 5,426
  • 8
  • 41
  • 57
3
votes
1 answer

Serving directories with FastAPI application

I need to serve a directory that contains data, like how Apache serves an index, and I would like to serve it through my FastAPI application. Is that possible with FastAPI or Starlette? If not, Simplehttpserver alternatives suggests Twistd as a…
Matt Leader
  • 133
  • 1
  • 8
3
votes
2 answers

Building angular library at ng serve

I am struggling with my angular library development. First of all, I am building an angular 8 library (current cli version 9) and I want to live see my library code changes while I am serving the demo app in which I am using this library. Current…
atheodos
  • 131
  • 12
3
votes
2 answers

Ionic4 Unknown browser query

I have practised Ionic a lot so these Problems are not new for me but I am unabale to solve this one. I am currently trying to migrate my Ionic3 project to Ionic4. To do this I have created a new Ionic4 tabs project. Every time I try the Ionic serve…
3
votes
0 answers

How to force browser hard reload/cache clear, after deploy new version of React app

I have a React app that is deployed in amazon aws. Whenever i update the code, i need to force hard reload manually on the client side(on Chrome ctrl+f5). Is there a way to not have to do this manually in React? I've noticed some posts about setting…
franmcod
  • 457
  • 4
  • 13
3
votes
1 answer

Unable to get Angular ng serve command to establish an https context

When we utilize the ng serve command, the following message appears during the compilation process: ** NG Live Development Server is running on http://localhost:4200 ** <==== older version of @angular/cli ** Angular Live Development Server is…
Dave Eland
  • 81
  • 1
  • 7
3
votes
0 answers

ng serve killed after compile successful

I am running "ng serve" the same way I have in the past. Now, after my angular app if fully compiled, the ng serve line is killed. When navigating in my browser to the port I specified, I see nothing. What could be wrong here? …
Sira
  • 31
  • 1
  • 3
3
votes
2 answers

Verdaccio access from internet

I can't access the Verdaccio page from the internet. I have the right IP address since I can serve a minimalist webpage and access it through the internet (with serve, port 5000) but as soon as I use the same IP address (in Chrome) with the…
jojo____
  • 247
  • 3
  • 16
3
votes
2 answers

how to use ws(websocket) via ngrok

I want to share my local WebSocket on the internet but ngrok only support HTTP but my ws.py address is ws://localhost:8000/ it is good working on localhost buy is not know how to use this on the internet?
ehsan
  • 91
  • 1
  • 5
3
votes
0 answers

Phonegap serve Ubuntu 17 not working/exiting silently

Using ubuntu 17. Firewall is completely disabled using sudo ufw disable Ive sudo npm -g install phonegap and created a project using sudo phonegap create. From this stock created project i try to sudo phonegap serve, the terminal is still for 2…
Ihsan Müjdeci
  • 914
  • 1
  • 9
  • 14
2
votes
3 answers

NextJS routing doesn't work when I manually put the URL after build/export

When I'm testing my application on localhost normally on npm run dev, the application and routes work normally, I can type localhost:3000/settings/account, which it renders normally, now when I run npm run build and npm run export, and test after…
2
votes
0 answers

In NextJS is it possible to serve .docx files in production build?

I've read the documentation that you can only serve static files from the public folder, like pictures, fonts or stylesheets. I placed my .docx file in the public folder, and in developer build it works fine, it downloads the file, but as soon as I…
PizzaPeet
  • 75
  • 6
2
votes
3 answers

Expo, React Native: Issue with URL & Refreshing

Hey guys I am having a small issue, I have been building a test add for the following platforms [ Web, Phones, Desktop ] The following frameworks I am using, Expo React Native React Native Navigation My issue is when on the PWA build after…
Volvic RBX
  • 65
  • 8
1 2
3
18 19