0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

refactor(core): remove default page rules (#5325)

This commit is contained in:
wangsijie 2024-01-30 10:55:31 +08:00 committed by GitHub
parent 09637a1a57
commit 2260eb01cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -67,7 +67,7 @@ export const mockProtectedApplication: Omit<Application, 'protectedAppMetadata'>
host: 'mock.protected.dev',
origin: 'https://my-blog.com',
sessionDuration: 1_209_600,
pageRules: [{ path: '^/' }],
pageRules: [],
},
isThirdParty: false,
createdAt: 1_645_334_775_356,

View file

@ -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'] = [];