fix deployment
This commit is contained in:
@@ -24,7 +24,7 @@ func VerifyToken(token string) (*auth.Token, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func setup() {
|
func setup() {
|
||||||
opt := option.WithCredentialsFile("./secrets/me-fit-a9365-firebase-adminsdk-8065w-7cf8443902.json")
|
opt := option.WithCredentialsFile("./secrets/firebase.json")
|
||||||
|
|
||||||
firebaseApp, err := firebase.NewApp(context.Background(), nil, opt)
|
firebaseApp, err := firebase.NewApp(context.Background(), nil, opt)
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,7 @@ COPY . ./
|
|||||||
RUN npm install && npm run build
|
RUN npm install && npm run build
|
||||||
|
|
||||||
FROM nginx:1.27.0-alpine@sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9
|
FROM nginx:1.27.0-alpine@sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
COPY --from=build /app/build /usr/share/nginx/html
|
COPY --from=build /app/build /usr/share/nginx/html
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
export const trailingSlash = 'always';
|
||||||
|
|||||||
Reference in New Issue
Block a user