diff --git a/.gitignore b/.gitignore index 2731e53..cdb4317 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ # MeshMapper API configuration (contains sensitive API key) -# Note: config.js is now tracked with placeholder value for local development -# During deployment, GitHub Actions regenerates it with the actual API key +content/config.js # Node modules (if added in the future) node_modules/ diff --git a/content/config.js b/content/config.js deleted file mode 100644 index 4d46fcf..0000000 --- a/content/config.js +++ /dev/null @@ -1,5 +0,0 @@ -// MeshMapper API Configuration -// This file contains the API key for posting to MeshMapper API -// During GitHub Pages deployment, this file is automatically regenerated with the actual API key from GitHub Secrets -// For local development, the placeholder value will cause the API post to be skipped -window.MESHMAPPER_API_KEY = "YOUR_API_KEY_HERE"; diff --git a/content/config.template.js b/content/config.template.js new file mode 100644 index 0000000..23a1fed --- /dev/null +++ b/content/config.template.js @@ -0,0 +1,4 @@ +// MeshMapper API Configuration +// This file contains the API key for posting to MeshMapper API +// Set MESHMAPPER_API_KEY to your actual API key +window.MESHMAPPER_API_KEY = "YOUR_API_KEY_HERE";