diff --git a/packages/core/src/__mocks__/index.ts b/packages/core/src/__mocks__/index.ts index 2d3203a1e..015732938 100644 --- a/packages/core/src/__mocks__/index.ts +++ b/packages/core/src/__mocks__/index.ts @@ -67,7 +67,7 @@ export const mockProtectedApplication: Omit host: 'mock.protected.dev', origin: 'https://my-blog.com', sessionDuration: 1_209_600, - pageRules: [{ path: '^/' }], + pageRules: [], }, isThirdParty: false, createdAt: 1_645_334_775_356, diff --git a/packages/core/src/routes/applications/constants.ts b/packages/core/src/routes/applications/constants.ts index 071638e3b..72401ccd9 100644 --- a/packages/core/src/routes/applications/constants.ts +++ b/packages/core/src/routes/applications/constants.ts @@ -3,8 +3,4 @@ import { type ProtectedAppMetadata } from '@logto/schemas'; export const defaultProtectedAppSessionDuration: ProtectedAppMetadata['sessionDuration'] = 60 * 60 * 24 * 14; // 14 days -export const defaultProtectedAppPageRules: ProtectedAppMetadata['pageRules'] = [ - { - path: '^/', // Match all paths - }, -]; +export const defaultProtectedAppPageRules: ProtectedAppMetadata['pageRules'] = [];