Skip to content

Commit 408425d

Browse files
authored
fix: Updates firebase.json public path; deletes log lines from app.sh (#83)
1 parent 257abec commit 408425d

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

firebase.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
{
22
"hosting": {
3-
"public": "dist",
3+
"public": ".",
44
"ignore": [
55
"firebase.json",
66
"**/.*",
77
"**/node_modules/**"
8-
]
9-
},
10-
"rewrites": [
11-
{
12-
"source": "/samples/**/index.js",
13-
"destination": "/samples/**/app/dist/index-*.js"
14-
}
15-
]
8+
],
9+
"nodeVersion": "22"
10+
}
1611
}

samples/app.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
# Copy/generate files for:
4-
# - Cloud Shell
3+
# Copy/generate:
4+
# - Files for Cloud Shell
55
# - Vite build output for hosting
66

77
# Generate JSFiddle output as part of the build process.
@@ -25,10 +25,8 @@ cp "${OUTPUT_DIR}/${NAME}/style.css" "${APP_DIR}/style.css"
2525
cp "${OUTPUT_DIR}/${NAME}/package.json" "${APP_DIR}/package.json"
2626
cp "${OUTPUT_DIR}/${NAME}/tsconfig.json" "${APP_DIR}/tsconfig.json"
2727
cp "${OUTPUT_DIR}/${NAME}/README.md" "${APP_DIR}/README.md"
28-
cp "${OUTPUT_DIR}/.env" "${APP_DIR}/.env" # TODO: Update the .env with the new API key.
28+
cp "${OUTPUT_DIR}/.env" "${APP_DIR}/.env"
2929
cp -r "${OUTPUT_DIR}/${NAME}/dist" "${MAIN_DIR}"
30-
echo "OUTPUT_DIR ${OUTPUT_DIR}"
31-
echo "MAIN_DIR ${MAIN_DIR}"
3230

3331
# Generate .eslintsrc.json
3432
touch "${APP_DIR}/.eslintsrc.json"
@@ -47,6 +45,3 @@ cat > "${APP_DIR}/.eslintsrc.json" << EOF
4745
}
4846
}
4947
EOF
50-
51-
52-
## TODO: Update this to copy

0 commit comments

Comments
 (0)