From 058ee0927f385ac267b8afa2472a685e447dae08 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Wed, 11 Dec 2024 19:36:08 -0800 Subject: [PATCH] Refactor virtual modules and update import paths --- .../src/routes/studiocms_api/config/admin.ts | 2 +- .../studiocms_dashboard/src/routes/studiocms_api/config/site.ts | 2 +- .../src/routes/studiocms_api/pages/create.ts | 2 +- .../src/routes/studiocms_api/pages/delete.ts | 2 +- .../studiocms_dashboard/src/routes/studiocms_api/pages/edit.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/studiocms_dashboard/src/routes/studiocms_api/config/admin.ts b/packages/studiocms_dashboard/src/routes/studiocms_api/config/admin.ts index 170e9d7ab..b70a0dfc6 100644 --- a/packages/studiocms_dashboard/src/routes/studiocms_api/config/admin.ts +++ b/packages/studiocms_dashboard/src/routes/studiocms_api/config/admin.ts @@ -1,7 +1,7 @@ import { logger } from '@it-astro:logger:studiocms-dashboard'; import { db } from 'astro:db'; // import { authHelper } from 'studiocms:auth/helpers'; -import Config from 'virtual:studiocms/config'; +import Config from 'studiocms:config'; import { tsPermissions } from '@studiocms/core/db/tsTables'; import type { APIContext } from 'astro'; import { simpleResponse } from '../../../utils/simpleResponse'; diff --git a/packages/studiocms_dashboard/src/routes/studiocms_api/config/site.ts b/packages/studiocms_dashboard/src/routes/studiocms_api/config/site.ts index 42fd2e6ef..508c64566 100644 --- a/packages/studiocms_dashboard/src/routes/studiocms_api/config/site.ts +++ b/packages/studiocms_dashboard/src/routes/studiocms_api/config/site.ts @@ -1,6 +1,6 @@ import { logger } from '@it-astro:logger:studiocms-dashboard'; // import { authHelper } from 'studiocms:auth/helpers'; -import Config from 'virtual:studiocms/config'; +import Config from 'studiocms:config'; import type { APIContext } from 'astro'; import { astroDb } from '../../../utils/astroDb'; import { simpleResponse } from '../../../utils/simpleResponse'; diff --git a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/create.ts b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/create.ts index 180a393ff..563c250f6 100644 --- a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/create.ts +++ b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/create.ts @@ -1,6 +1,6 @@ import { logger } from '@it-astro:logger:studiocms-dashboard'; // import { authHelper } from 'studiocms:auth/helpers'; -import Config from 'virtual:studiocms/config'; +import Config from 'studiocms:config'; import type { APIContext } from 'astro'; import { astroDb } from '../../../utils/astroDb'; import { simpleResponse } from '../../../utils/simpleResponse'; diff --git a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/delete.ts b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/delete.ts index 15fc2fdfb..c965f0789 100644 --- a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/delete.ts +++ b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/delete.ts @@ -1,6 +1,6 @@ import { logger } from '@it-astro:logger:studiocms-dashboard'; // import { authHelper } from 'studiocms:auth/helpers'; -import Config from 'virtual:studiocms/config'; +import Config from 'studiocms:config'; import type { APIContext } from 'astro'; import { astroDb } from '../../../utils/astroDb'; import { simpleResponse } from '../../../utils/simpleResponse'; diff --git a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/edit.ts b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/edit.ts index fd1390503..0c72fa1b0 100644 --- a/packages/studiocms_dashboard/src/routes/studiocms_api/pages/edit.ts +++ b/packages/studiocms_dashboard/src/routes/studiocms_api/pages/edit.ts @@ -1,6 +1,6 @@ import { logger } from '@it-astro:logger:studiocms-dashboard'; // import { authHelper } from 'studiocms:auth/helpers'; -import Config from 'virtual:studiocms/config'; +import Config from 'studiocms:config'; import type { APIContext } from 'astro'; import { astroDb } from '../../../utils/astroDb'; import { simpleResponse } from '../../../utils/simpleResponse';