Skip to content
Draft

webgl #2548

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ coverage/
TODO.txt
resources/images/.DS_Store
resources/.DS_Store
resources/certs/
.env*
.DS_Store
.clinic/
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start:server": "node --loader ts-node/esm --experimental-specifier-resolution=node src/server/Server.ts",
"start:server-dev": "cross-env GAME_ENV=dev node --loader ts-node/esm --experimental-specifier-resolution=node src/server/Server.ts",
"dev": "cross-env GAME_ENV=dev concurrently \"npm run start:client\" \"npm run start:server-dev\"",
"dev:secure": "cross-env GAME_ENV=dev DEV_HTTPS=1 DEV_CERT=resources/certs/dev.crt DEV_KEY=resources/certs/dev.key concurrently \"npm run start:client\" \"npm run start:server-dev\"",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# Search for any documentation about certificates, HTTPS setup, or certificate generation
rg -i "certificate|https.*dev|dev.*crt|dev.*key|mkcert|openssl.*dev" --type md --type txt -C 2

Repository: openfrontio/OpenFrontIO

Length of output: 320


🏁 Script executed:

# Check if certificate directory is gitignored
cat .gitignore 2>/dev/null | grep -i "cert\|crt\|key" || echo "No certificate entries found in .gitignore"

Repository: openfrontio/OpenFrontIO

Length of output: 83


🏁 Script executed:

# Look for README or setup documentation
find . -maxdepth 2 -type f \( -name "README*" -o -name "SETUP*" -o -name "CONTRIBUTING*" -o -name "*.md" \) | head -20

Repository: openfrontio/OpenFrontIO

Length of output: 201


🏁 Script executed:

# Check the actual structure around package.json for any dev setup docs
ls -la | head -30

Repository: openfrontio/OpenFrontIO

Length of output: 1887


🏁 Script executed:

cat README.md | head -100

Repository: openfrontio/OpenFrontIO

Length of output: 3634


🏁 Script executed:

cat example.env

Repository: openfrontio/OpenFrontIO

Length of output: 707


🏁 Script executed:

# Check webpack.config.js for certificate handling
sed -n '20,35p' webpack.config.js

Repository: openfrontio/OpenFrontIO

Length of output: 563


🏁 Script executed:

# Check if there's any script to generate certificates
rg "mkcert|keytool|certificate|cert.*generate" --type=js --type=ts

Repository: openfrontio/OpenFrontIO

Length of output: 49


🏁 Script executed:

# Search for dev:secure references
rg "dev:secure" --type=js --type=json --type=md

Repository: openfrontio/OpenFrontIO

Length of output: 267


🏁 Script executed:

# Check CONTRIBUTING or other guidance docs
find . -maxdepth 2 -type f \( -name "CONTRIBUTING*" -o -name ".github/*" \) | xargs cat 2>/dev/null | head -50

Repository: openfrontio/OpenFrontIO

Length of output: 49


🏁 Script executed:

# Check package.json for all dev-related scripts and context
cat package.json | head -50

Repository: openfrontio/OpenFrontIO

Length of output: 2342


Add documentation for HTTPS certificate setup in local development.

The dev:secure npm script requires certificate files at resources/certs/dev.crt and resources/certs/dev.key, which are gitignored and not provided in the repository. Developers attempting to use this script will encounter missing file errors without guidance. Add instructions in the README or a setup guide explaining how to generate self-signed certificates using OpenSSL or mkcert for local HTTPS development.

🤖 Prompt for AI Agents
In package.json around line 10 the dev:secure script expects
resources/certs/dev.crt and resources/certs/dev.key which are gitignored and not
provided; update the README (or a dedicated SETUP.md) with concise steps to
generate and install local dev certificates (both an OpenSSL one-liner and a
mkcert workflow), specify the exact target paths (resources/certs/dev.crt and
resources/certs/dev.key), note file permissions if needed, and instruct
developers to set DEV_HTTPS=1 or use the npm script; also mention that the cert
files are intentionally gitignored and should not be checked in.

"dev:staging": "cross-env GAME_ENV=dev API_DOMAIN=api.openfront.dev concurrently \"npm run start:client\" \"npm run start:server-dev\"",
"dev:prod": "cross-env GAME_ENV=dev API_DOMAIN=api.openfront.io concurrently \"npm run start:client\" \"npm run start:server-dev\"",
"tunnel": "npm run build-prod && npm run start:server",
Expand Down
Loading
Loading