fix: docker image permission issue (#2987)

Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
This commit is contained in:
Matti Nannt
2024-08-08 17:55:25 +02:00
committed by GitHub
parent 3ba23e1787
commit 0d9c90ceeb
4 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ RUN PRISMA_VERSION=$(cat prisma_version.txt) && npm install -g prisma@$PRISMA_VE
EXPOSE 3000
ENV HOSTNAME "0.0.0.0"
USER nextjs
# USER nextjs
# Prepare volume for uploads
RUN mkdir -p /home/nextjs/apps/web/uploads/
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@formbricks/web",
"version": "2.4.1",
"version": "2.4.2",
"private": true,
"scripts": {
"clean": "rimraf .turbo node_modules .next",
@@ -49,7 +49,6 @@ async function runMigration(): Promise<void> {
const updatedSurvey: UpdatedSurvey = structuredClone(survey) as UpdatedSurvey;
if (survey.redirectUrl) {
// @ts-expect-error -- TS is not able to infer the type of updatedSurvey
updatedSurvey.endings = [
{
type: "redirectToUrl",
@@ -59,7 +58,6 @@ async function runMigration(): Promise<void> {
},
];
} else if (survey.thankYouCard?.enabled) {
// @ts-expect-error -- TS is not able to infer the type of updatedSurvey
updatedSurvey.endings = [
{
...survey.thankYouCard,
@@ -68,7 +66,6 @@ async function runMigration(): Promise<void> {
},
];
} else {
// @ts-expect-error -- TS is not able to infer the type of updatedSurvey
updatedSurvey.endings = [];
}
+1 -1
View File
@@ -50,7 +50,7 @@ export type TSurveyEnding = z.infer<typeof ZSurveyEnding>;
export const ZSurveyEndings = z.array(ZSurveyEnding);
export type TSurveyEndings = z.infer<typeof ZSurveyEnding>;
export type TSurveyEndings = z.infer<typeof ZSurveyEndings>;
export enum TSurveyQuestionTypeEnum {
FileUpload = "fileUpload",