xavi-ean
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
Yes, more elegant 🤦. Thanks.
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
Try the workaround explained above. It works for me.
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
Workaround: use a custom build.sh
#!/bin/bash
npm run build
sed -i '//_nuxt/builds/*/d' ./dist/_routes.json
removes the overlapping routes after building app.
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
npm run build => "build": "NITRO_PRESET=cloudflare-pages nuxt build"
generates ./dist/_routes.json file with overlaping rules in exclude section.
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
my-nuxt-app git:(main) ✗ npx wrangler pages deploy ./dist
🌍 Uploading... (11/11) ✨ Success! Uploaded 0 files (11 already uploaded) (0.23 sec) ✨ Compiled Worker successfully ✨ Uploading Worker bundle ✨ Uploading _routes.json ✨ Deployment complete! Take a peek over at https://21092f6b.my-nuxt-app-9t6.pages.dev ➜ my-nuxt-app git:(main) ✗ Success deployment
🌍 Uploading... (11/11) ✨ Success! Uploaded 0 files (11 already uploaded) (0.23 sec) ✨ Compiled Worker successfully ✨ Uploading Worker bundle ✨ Uploading _routes.json ✨ Deployment complete! Take a peek over at https://21092f6b.my-nuxt-app-9t6.pages.dev ➜ my-nuxt-app git:(main) ✗ Success deployment
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
_routes.json file:
_routes.json
{
"version": 1,
"include": [
"/"
],
"exclude": [
"/_nuxt/",
"/_nuxt/builds/",
"/_nuxt/builds/meta/",
"/favicon.ico"
]
}%
Removed lines: "/_nuxt/builds/", "/_nuxt/builds/meta/",
Removed lines: "/_nuxt/builds/", "/_nuxt/builds/meta/",
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
I've just create a new test app via cli:
npm create cloudflare@latest my-nuxt-app -- --framework=nuxt
with same error as via cloudflare dashboard:
🌍 Uploading... (11/11)
✨ Success! Uploaded 7 files (4 already uploaded) (1.92 sec)
✨ Compiled Worker successfully
✨ Uploading Worker bundle
✘ [ERROR] Invalid _routes.json file found at: dist/_routes.json
Overlapping rules found. Please make sure that rules ending with a splat (eg. "/api/*") don't
overlap any other rules (eg. "/api/foo"). This applies to both include and exclude rules
individually.
16 replies
CDCloudflare Developers
•Created by xavi-ean on 10/19/2023 in #pages-help
Since this afternoon Error when deploying all our nuxt applications
Success deployment d81d1e6b-e7cb-4463-a036-aa4722e906d2 10:53 CET
Fail deployment f3591698-f45d-470d-bca6-dc301111140c 20:00 CET
Same repo commit
16 replies