Rendering links produces 404s with Static Site Generation #56724
Unanswered
rebeccapeltz
asked this question in
Help
Replies: 2 comments 1 reply
-
some testing I've been doing with SSG, Seversideprops, client side and deployed to Azure - don't see the problem but I don't have a page with links |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Some odd things have started happening since we configured for deployment to Azure:
instructions for deployment to static apps on Azure: https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-hybrid
node .next/standalone/server.js
, I get this for a server:Could this be related to caching? We're using these instructions to deploy to Azure: https://learn.microsoft.com/en-us/azure/static-web-apps/nextjs
Additional information
Next.config.js
Header data:
Request Method:
GET
Status Code:
404 Not Found
Remote Address:
20.109.133.32:443
Referrer Policy:
strict-origin-when-cross-origin
Content-Length:
15919
Content-Type:
text/html; charset=utf-8
Date:
Wed, 11 Oct 2023 21:36:34 GMT
Etag:
"6q22h9rq6gca6"
Strict-Transport-Security:
max-age=31536000; includeSubDomains
X-Ms-Nextjs-Render:
server
X-Powered-By:
Next.js
Accept:
/
Accept-Encoding:
gzip, deflate, br
Accept-Language:
en-US,en;q=0.9
Cache-Control:
no-cache
Connection:
keep-alive
Host:
Pragma:
no-cache
Purpose:
prefetch
Referer:
https: ///azurestaticapps.net/studio/9803936d-c63f-49a2-bab1-9892e0d72bc6
Sec-Ch-Ua:
"Microsoft Edge";v="117", "Not;A=Brand";v="8", "Chromium";v="117"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"Windows"
Sec-Fetch-Dest:
empty
Sec-Fetch-Mode:
cors
Sec-Fetch-Site:
same-origin
User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.2045.47
X-Nextjs-Data:
1
9803936d-c63f-49a2-bab1-9892e0d72bc6:1 [Intervention] Images loaded lazily and replaced with placeholders. Load events are deferred. See https://go.microsoft.com/fwlink/?linkid=2048113
main-5346c0e7de1dc417.js:1
GET https://.....azurestaticapps.net/_next/data/ofxiVlfI-jCvs…-49a2-bab1-9892e0d72bc6.json?studioId=9803936d-c63f-49a2-bab1-9892e0d72bc6 404 (Not Found)
main-5346c0e7de1dc417.js:1
GET https://...azurestaticapps.net/_next/data/ofxiVlfI-jCvs…-49a2-bab1-9892e0d72bc6.json?studioId=9803936d-c63f-49a2-bab1-9892e0d72bc6 404 (Not Found)
Beta Was this translation helpful? Give feedback.
All reactions