statamic / ssg

The official Statamic Static Site Generator
233 stars 24 forks source link

404 page is not used when using Netlify #66

Closed ItsJustPW closed 3 years ago

ItsJustPW commented 3 years ago

Unless I've missed something (possible) the 404 page used when publishing to Netlify is the default Netlify version:

Screenshot 2021-07-25 at 09 59 40
jasonvarga commented 3 years ago

Do you have an errors/404 view?

ItsJustPW commented 3 years ago

2:13:39 PM: Gathering content to be generated... 2:13:39 PM: [✔] Gathered content to be generated 2:13:39 PM: Generating 2 content files... 2:13:39 PM: Generating /404 2:13:39 PM: Generating / 2:13:39 PM: [✔] Generated 2 content files 2:13:39 PM: [✘] /404 (The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.) 2:13:39 PM: [✔] /opt/build/repo/public/css copied to /opt/build/repo/storage/app/static/css 2:13:39 PM: [✔] /opt/build/repo/public/js copied to /opt/build/repo/storage/app/static/js 2:13:39 PM: [✔] /opt/build/repo/public/assets copied to /opt/build/repo/storage/app/static/assets 2:13:39 PM: [✔] /opt/build/repo/public/robots.txt copied to /opt/build/repo/storage/app/static/robots.txt 2:13:39 PM: [✔] /opt/build/repo/public/favicon.ico copied to /opt/build/repo/storage/app/static/favicon.ico 2:13:39 PM: [✔] /opt/build/repo/public/manifest.json copied to /opt/build/repo/storage/app/static/manifest.json 2:13:39 PM: [✔] /opt/build/repo/public/sw.js copied to /opt/build/repo/storage/app/static/sw.js 2:13:39 PM: Static site generated into /opt/build/repo/storage/app/static

jasonvarga commented 3 years ago

Ah, make sure you have an APP_KEY set in your .env file. Check the netlify instructions in the readme. https://github.com/statamic/ssg#deploy-to-netlify