mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-05 11:21:07 -05:00
fix: docker image permission issue (#2987)
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
This commit is contained in:
+1
-1
@@ -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,6 +1,6 @@
|
||||
{
|
||||
"name": "@formbricks/web",
|
||||
"version": "2.4.1",
|
||||
"version": "2.4.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"clean": "rimraf .turbo node_modules .next",
|
||||
|
||||
-3
@@ -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 = [];
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user