feat: improve fetch course by slug query

This commit is contained in:
Rotimi Best
2024-06-16 05:01:35 +01:00
parent e8a79e5995
commit fecdaa116d
2 changed files with 52 additions and 31 deletions
+3 -1
View File
@@ -53,7 +53,9 @@ export const load = async ({ url, cookies }): Promise<LoadOutput> => {
if (isLocalHost && tempSiteName) {
console.log('setting sitename temp');
cookies.set('_orgSiteName', tempSiteName);
cookies.set('_orgSiteName', tempSiteName, {
path: '/'
});
}
const _orgSiteName = cookies.get('_orgSiteName');