fix deployment

This commit is contained in:
2024-07-29 22:22:11 +02:00
parent a54796a545
commit bf6b3686db
3 changed files with 5 additions and 1 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -1 +1,2 @@
export const prerender = true; export const prerender = true;
export const trailingSlash = 'always';