Skip to content

Commit b423dd3

Browse files
committed
Add netlify.toml and nojekyll
1 parent 7329200 commit b423dd3

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.nojekyll

Whitespace-only changes.

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
import { defineConfig } from 'astro/config';
33

44
// https://astro.build/config
5-
export default defineConfig({});
5+
export default defineConfig({
6+
// Add your Netlify site URL here when you have it
7+
// site: 'https://your-site-name.netlify.app',
8+
});

netlify.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[build]
2+
publish = "dist"
3+
command = "npm run build"
4+
5+
[build.environment]
6+
NODE_VERSION = "18"
7+
8+
# Redirect rules for SPA-like behavior (optional)
9+
[[redirects]]
10+
from = "/*"
11+
to = "/index.html"
12+
status = 200
13+
conditions = {Role = ["admin"]}
14+
15+
# Optional: Handle form submissions (if you plan to add forms later)
16+
# [[redirects]]
17+
# from = "/api/*"
18+
# to = "/.netlify/functions/:splat"
19+
# status = 200

0 commit comments

Comments
 (0)