From 4c68cde98802f60876cedbb77456a6fed495423c Mon Sep 17 00:00:00 2001 From: Daniel Montalvo <49305434+daniel-montalvo@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:37:34 +0200 Subject: [PATCH] Add Netlify settings for static snapshots (#2265) --- netlify.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..7b5d7e71f --- /dev/null +++ b/netlify.toml @@ -0,0 +1,19 @@ +# netlify.toml +# Basic configuration for a Netlify deployment +[build] + publish = "" # Directory to publish + command = "npx respec -s index.html -o index.html --localhost; npx respec -s accname/index.html -o accname/index.html --localhost; npx respec -s core-aam/index.html -o core-aam/index.html --localhost; npx respec -s dpub-aam/index.html -o dpub-aam/index.html --localhost; npx respec -s dpub-aria/index.html -o dpub-aria/index.html --localhost; npx respec -s graphics-aam/index.html -o graphics-aam/index.html --localhost; npx respec -s graphics-aria/index.html -o graphics-aria/index.html --localhost; npx respec -s svg-aam/index.html -o svg-aam/index.html --localhost; npx respec -s mathml-aam/index.html -o mathml-aam/index.html --localhost" + +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 + +[context.production.environment] + NODE_ENV = "production" + +[context.deploy-preview] + NODE_ENV = "Deploy" + +[context.branch-deploy.environment] + NODE_ENV = "development" \ No newline at end of file