It’s been happening recently on one of my astro sites… that when run npm run dev
the site loads fine but then I run netlify dev
the site loads up with the js or the css and the console shows a 404 error for the css and js files…
Response with status 404 in 3 ms.
03:20:03 PM [serve] 404 /client.20385767.js
03:20:03 PM [serve] 404 /HeroView.f0186e49.js
03:20:03 PM [serve] 404 /TrendingProducts.d59f2545.js
03:20:03 PM [serve] 404 /StoreFrontFooter.e04a3e95.js
◈ Rewrote URL to /.netlify/functions/entry
Request from ::1: GET /.netlify/functions/entry
Response with status 404 in 27 ms.
Frankly I don’t know what the ./netlify/functions/entry
function is for? I did not create it… is it something netlify does on its own?
here’s my package.json if it helps
{
"name": "@example/minimal",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/netlify": "^1.3.0",
"@astrojs/rss": "^2.1.0",
"@astrojs/sitemap": "^1.0.1",
"@astrojs/tailwind": "^2.1.3",
"@astrojs/vue": "^1.2.2",
"@headlessui/vue": "^1.7.7",
"@heroicons/vue": "^2.0.13",
"@nanostores/persistent": "^0.7.0",
"@nanostores/vue": "^0.6.1",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
"astro": "^1.9.0",
"dotenv": "^16.0.3",
"nanostores": "^0.7.1",
"netlify-cli": "^12.9.2",
"razorpay": "^2.8.4",
"sass": "^1.58.0",
"tailwindcss": "^3.2.4",
"vue": "^3.2.45"
}
}
I was planning to upgrade my astro to version 2 but I’d like to resolve this issue before I do…
Regards,
Alim