#Not able to host Astro site on Go Daddy, running index.html file from dist, give multiple CORS error

3 messages · Page 1 of 1 (latest)

bitter kiln
#

Hi everyone, hope you're doing great, I am new to discord and new to Astro as well, recently I have built a website and trying to host it on go daddy, but after several hours spent I was not able to host the site on Go Daddy, the steps I have tried: 1. build the local Astro website by running npm run build, uploaded all the files from dist folder as it is to the Go Daddy cPanel in public_html folder using File Manager, but the does not show up when I go to my domain, also when I tried to open the index.html file locally located in dist folder, I can see several 404 not found and CORS errors in my console. Please note that when I deploy this website on Netlify it runs smoothly, but this site is for one of my client and they have already purchased a hosting plan on go daddy and wants to host on there
please suggest me if I am missing anything or Go Daddy is only made for wordpress and traditional built static website

austere heartBOT
#

Hi @bitter kiln. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet about deploying an Astro site on GoDaddy specifically. However, I can provide you with some general information about deploying Astro sites.

To build your Astro site locally, you can run the following command:

npm run build

By default, the build output will be placed in the dist/ folder. This location can be changed using the outDir configuration option (https://docs.astro.build/en/reference/configuration-reference/#outdir).

When deploying your Astro site to a hosting provider, you need to upload the contents of the dist/ folder to the appropriate location on the server. The process may vary depending on the hosting provider.

Since you mentioned that your site works smoothly on Netlify, it's possible that there might be some configuration issues or limitations with GoDaddy hosting. I recommend checking GoDaddy's documentation or reaching out to their support for more information on deploying static sites.

In the meantime, you can explore other deployment options for Astro sites (https://docs.astro.build/en/guides/deploy) in the official documentation.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

Astro Documentation

How to deploy your Astro site to the web.

Astro Documentation

Build faster websites with less client-side JavaScript.