DoneDeal
DoneDeal

Reputation: 159

Netifly Fails To Load Ressource After Deployment

I've deployed a React website on Netifly this morning from a github repository.

I then made a few changes, pushed them to github, and triggered a new deployment on Netifly. Now the website is a blank page. In the console, I have the message:

Failed to load resource: the server responded with a status of 404 ()

So I've created a new project on Netifly, with the same repository. The issue remains. Is it a temporary issue from Netifly? If not, how could I fix that?

Upvotes: 1

Views: 3689

Answers (2)

zstefanova
zstefanova

Reputation: 1831

I got the same error message after commiting vue.config.js file. Deleting this file fixed my problem.

Upvotes: 1

talves
talves

Reputation: 14353

In a create react app, a typical error would be to set the homepage to be an absolute path when you might have wanted a relative path to the index.html

Try using the relative path for now, then change based on your needs.

In package.json

"homepage": ".",

This will set the relative path of the create react app to be where the index.html is located.

Note: Note: this feature is available with [email protected] and higher.

You can read more about setting relative paths here

Upvotes: 7

Related Questions