ParadoxLector
ParadoxLector
NNuxt
Created by ParadoxLector on 2/24/2025 in #❓・help
Deploy Nuxt Content to Cloudflare Pages
Hey all! I have a really hard time to deploy an instance of Nuxt Content to Cloudflare Page. The deployment goes well up to the point where it errors when deploying to Cloudflare Global Network:
11:04:45.789 ✨ Compiled Worker successfully
11:04:46.968 Found _routes.json in output directory. Uploading.
11:04:46.980 Validating asset output directory
11:04:49.981 Deploying your site to Cloudflare's global network...
11:04:52.610 Parsed 6 valid header rules.
11:04:53.871 Uploading... (118/121)
11:04:54.326 Uploading... (119/121)
11:04:54.342 Uploading... (120/121)
11:04:54.402 Uploading... (121/121)
11:04:54.403 ✨ Success! Uploaded 3 files (118 already uploaded) (0.84 sec)
11:04:54.403
11:04:54.652 ✨ Upload complete!
11:04:57.741 Success: Assets published!
11:05:00.673 Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value #<Object> is not a constructor or null at chunks/nitro/nitro.mjs:1:727062
11:04:45.789 ✨ Compiled Worker successfully
11:04:46.968 Found _routes.json in output directory. Uploading.
11:04:46.980 Validating asset output directory
11:04:49.981 Deploying your site to Cloudflare's global network...
11:04:52.610 Parsed 6 valid header rules.
11:04:53.871 Uploading... (118/121)
11:04:54.326 Uploading... (119/121)
11:04:54.342 Uploading... (120/121)
11:04:54.402 Uploading... (121/121)
11:04:54.403 ✨ Success! Uploaded 3 files (118 already uploaded) (0.84 sec)
11:04:54.403
11:04:54.652 ✨ Upload complete!
11:04:57.741 Success: Assets published!
11:05:00.673 Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value #<Object> is not a constructor or null at chunks/nitro/nitro.mjs:1:727062
I really could use some help here if possible. Thank you!
7 replies
NNuxt
Created by ParadoxLector on 6/3/2024 in #❓・help
Posting using $fetch
Hey all! I have the following code in a server api endpoint:
const data = await $fetch(`https://api.server.com/logout/`, {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
"application_id": `${APPLICATION_ID}`,
"access_token": `${access_token}`
})
})
const data = await $fetch(`https://api.server.com/logout/`, {
method: 'POST',
headers: {
'Content-Type': 'application/json; charset=utf-8'
},
body: JSON.stringify({
"application_id": `${APPLICATION_ID}`,
"access_token": `${access_token}`
})
})
https://api.server.com/logout/ always replays with
error: {
field: 'application_id',
message: 'APPLICATION_ID_NOT_SPECIFIED',
code: 402,
value: null
}
error: {
field: 'application_id',
message: 'APPLICATION_ID_NOT_SPECIFIED',
code: 402,
value: null
}
How do I correctly make the POST? Thank you!
8 replies
NNuxt
Created by ParadoxLector on 5/25/2024 in #❓・help
Recent upgrade from Nuxt 3.7 to 3.11 resulted in a Host Error
Hey all! I've recently upgraded my Nuxt application from Nuxt 3.7 to Nuxt 3.11 and visitors are complaining the website is (randomly) not accessible (Host Error). The application is hosted by Cloudflare Pages and it used to work flawlessly. The screen capture of the error: https://monosnap.com/file/3rKSMH4yN5IwrzJQ4vuJLzS4uXcW9w Any help is appreciated. Thank you!
1 replies