File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
apps/backend/src/app/api/latest/internal/projects
packages/stack-shared/src/config Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,13 @@ export const adminUserProjectsCrudHandlers = createLazyProxy(() => createCrudHan
3232 const project = await createOrUpdateProject ( {
3333 ownerIds : userIds ,
3434 type : 'create' ,
35- data,
35+ data : {
36+ ...data ,
37+ config : {
38+ allow_localhost : true ,
39+ ...data . config ,
40+ } ,
41+ } ,
3642 } ) ;
3743 const tenancy = await getSoleTenancyFromProjectBranch ( project . id , DEFAULT_BRANCH_ID ) ;
3844 return {
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ const organizationConfigDefaults = {
352352 } ,
353353
354354 domains : {
355- allowLocalhost : true ,
355+ allowLocalhost : false ,
356356 trustedDomains : ( key : string ) => ( {
357357 baseUrl : undefined ,
358358 handlerPath : '/handler' ,
You can’t perform that action at this time.
0 commit comments