Skip to content

Commit

Permalink
Don't hard-specify app name in wrangler.toml; draw from env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Dec 31, 2023
1 parent 8331fe5 commit 36fe42b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
27 changes: 26 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"build": "remix build",
"deploy": "wrangler deploy",
"_deploy": "wrangler deploy --name $CF_APP_NAME",
"deploy": "dotenv -e .dev.vars -- npm run _deploy",
"dev": "remix dev --manual -c \"npm start\"",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
"start": "wrangler dev ./build/index.js",
Expand Down Expand Up @@ -38,6 +39,7 @@
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"autoprefixer": "^10.4.16",
"dotenv-cli": "^7.3.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
2 changes: 0 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name = "counterscale"

workers_dev = true
main = "./build/index.js"
# https://developers.cloudflare.com/workers/platform/compatibility-dates
Expand Down

0 comments on commit 36fe42b

Please sign in to comment.