OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

"Page Not Found" when trying to access a multipage site deployed on Netlify

  • Thread starter Thread starter Сергій Болховський
  • Start date Start date
С

Сергій Болховський

Guest
41

I'm running a multipage website site and deploy it on Netlify. I source files on GitHub, and Netlify deploys it.

Netlify reports that the site is live (deploy log enclosed at the bottom), but when I'm trying to view my site, all I see is a Netlify error message:

Page Not found

Looks like you've followed a broken link or entered a URL that doesn't exist on this site.

← Back to our site

What could be the reason?

My GitHub Repo: https://github.com/Serhii-Bolhovskyi/green-spaces

My deploy settings:

Code:
Repository: https://github.com/Serhii-Bolhovskyi/green-spaces
Build command: npm run build
Publish directory: src
Production branch: main
Branch deploys: Deploy only the production branch and its deploy previews
Public deploy logs: Logs are public

When i try to change Publish directory: src/pages i receive page which contains only index.html without any styles, and doesn't apply TailwindCss

Here image: enter image description here

<p>41</p>
<p>I'm running a <code>multipage website</code> site and deploy it on Netlify. I source files on GitHub, and Netlify deploys it.</p>
<p>Netlify reports that the site is live (deploy log enclosed at the bottom), but when I'm trying to view my site, all I see is a Netlify error message:</p>
<p><code>Page Not found</code></p>
<p><code>Looks like you've followed a broken link or entered a URL that doesn't exist on this site.</code></p>
<p><code>← Back to our site</code></p>
<p>What could be the reason?</p>
<p>My GitHub Repo: <a href="https://github.com/Serhii-Bolhovskyi/green-spaces" rel="nofollow noreferrer">https://github.com/Serhii-Bolhovskyi/green-spaces</a></p>
<p>My deploy settings:</p>
<pre><code>Repository: https://github.com/Serhii-Bolhovskyi/green-spaces
Build command: npm run build
Publish directory: src
Production branch: main
Branch deploys: Deploy only the production branch and its deploy previews
Public deploy logs: Logs are public
</code></pre>
<p>When i try to change <code>Publish directory: src/pages</code> i receive page which contains only index.html without any styles, and doesn't apply TailwindCss</p>
<p>Here image: <a href="https://i.sstatic.net/53WgClvH.png" rel="nofollow noreferrer">enter image description here</a></p>
 

Latest posts

M
Replies
0
Views
1
Meliodas Dragon
M
Top