# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For detailed explanation on how things work, check out Nuxt.js docs.
https://firebase.google.com/docs/cli?hl=ja
firebase login:ci
※ Copy generated token.
Setting
> Secrets
> New Secret
-
Name: FIREBASE_TOKEN
-
Value: Paste your ci token
-
Name: FIREBASE_PROJECT_ID
-
Value: Your project id
firebase use {your_project_id}
firebase deploy
./functions/index.js
app.all(
'/*',
basicAuth(
(user, password) =>
user === 'basic_auth_user' && password === 'basic_auth_password'
)
)
Change 'basic_auth_user'
and 'basic_auth_password'