Skip to content

Commit 7994bed

Browse files
authored
Merge pull request #14 from MrAlders0n/copilot/fix-meshmapper-api-key
Add config.js to repository to fix missing API key configuration
2 parents 7ffc432 + 541114f commit 7994bed

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# MeshMapper API configuration (contains sensitive API key)
2-
content/config.js
2+
# Note: config.js is now tracked with placeholder value for local development
3+
# During deployment, GitHub Actions regenerates it with the actual API key
34

45
# Node modules (if added in the future)
56
node_modules/

content/config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// MeshMapper API Configuration
2+
// This file contains the API key for posting to MeshMapper API
3+
// During GitHub Pages deployment, this file is automatically regenerated with the actual API key from GitHub Secrets
4+
// For local development, the placeholder value will cause the API post to be skipped
5+
window.MESHMAPPER_API_KEY = "YOUR_API_KEY_HERE";

content/config.template.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)