Having trouble filling out settings to launch static website

I"m having trouble figuring out what’s wrong with my settings. I think the problem is this field here:

Publish directory

The relative path of the directory containing built assets to publish. Examples:./build,dist and frontend/build.

I tried inputting “.”, “client”, and “client/src”. My website is going live but only displaying “not found”. I’m sure this is a path issue, as my website can be hosted locally and works fine. My index.js file is in ./client/src, and when I host locally I’m running “npm start” from my client folder to get everything launched correctly.

This is my first attempt at launching a website live, so thanks everyone for reading and being patient in advance!

Hi there,

If your web service requires running npm start, that means you need to run this as a Web Service (which will allow you to run a Node server with npm start) not a Static Site.

See https://docs.render.com/service-types#which-service-type-is-right-for-my-app for more information.

Regards,

Matt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.