Skip to content

Commit 34d68b7

Browse files
committed
More fixes
1 parent cecb520 commit 34d68b7

File tree

2 files changed

+8
-2
lines changed
  • apps/backend/src/app/api/latest/internal/projects
  • packages/stack-shared/src/config

2 files changed

+8
-2
lines changed

apps/backend/src/app/api/latest/internal/projects/crud.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

packages/stack-shared/src/config/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

0 commit comments

Comments
 (0)