feat(web/website): init
This adds a new Website/Docs for Snix, using Thulite / Doks, which is mostly hugo and a bit of npm. Change-Id: Iea10d4068fa783ec0ddd6bcaba5c8d92b1a1168f
This commit is contained in:
parent
2705517e6d
commit
91d8b86b39
55 changed files with 6205 additions and 0 deletions
49
web/netlify.toml
Normal file
49
web/netlify.toml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[build]
|
||||
publish = "public"
|
||||
functions = "functions"
|
||||
|
||||
[build.environment]
|
||||
NODE_VERSION = "20.11.0"
|
||||
NPM_VERSION = "10.2.4"
|
||||
HUGO_VERSION = "0.125.1"
|
||||
|
||||
[context.production]
|
||||
command = "npm run build"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "npm run build"
|
||||
|
||||
[context.branch-deploy]
|
||||
command = "npm run build"
|
||||
|
||||
[context.next]
|
||||
command = "npm run build"
|
||||
|
||||
[context.next.environment]
|
||||
HUGO_ENV = "next"
|
||||
|
||||
[dev]
|
||||
framework = "#custom"
|
||||
command = "npm run dev"
|
||||
targetPort = 1313
|
||||
port = 8888
|
||||
publish = "public"
|
||||
autoLaunch = false
|
||||
|
||||
# Redirects and rewrites — https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
|
||||
|
||||
# Custom headers — https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file
|
||||
[[headers]]
|
||||
for = "/*"
|
||||
[headers.values]
|
||||
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
|
||||
X-Content-Type-Options = "nosniff"
|
||||
X-XSS-Protection = "1; mode=block"
|
||||
Content-Security-Policy = "default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com data:; script-src 'self' 'nonce-dXNlcj0iaGVsbG8iLGRvbWFpbj0iaGVua3ZlcmxpbmRlLmNvbSIsZG9jdW1lbnQud3JpdGUodXNlcisiQCIrZG9tYWluKTs=' 'sha256-aWZ3y/RxbBYKHXH0z8+8ljrHG1mSBvyzSfxSMjBSaXk='; style-src 'self'"
|
||||
X-Frame-Options = "SAMEORIGIN"
|
||||
Referrer-Policy = "strict-origin"
|
||||
Permissions-Policy = "geolocation=(self), microphone=(), camera=()"
|
||||
Cache-Control= '''
|
||||
public,
|
||||
max-age=31536000'''
|
||||
Access-Control-Allow-Origin = "*"
|
||||
Loading…
Add table
Add a link
Reference in a new issue