diff options
author | 2024-04-02 20:08:38 +0000 | |
---|---|---|
committer | 2024-04-02 20:08:38 +0000 | |
commit | 5f5176b2448a42d4a3d2ab88bd2a9389c574cf0a (patch) | |
tree | b8b3af79ad1917eebd248654b2a671e18aebb013 | |
parent | b1eda3dc5c33c1c6d50d5ee8a2a08d34851dc253 (diff) | |
download | astro-5f5176b2448a42d4a3d2ab88bd2a9389c574cf0a.tar.gz astro-5f5176b2448a42d4a3d2ab88bd2a9389c574cf0a.tar.zst astro-5f5176b2448a42d4a3d2ab88bd2a9389c574cf0a.zip |
[ci] format
-rw-r--r-- | packages/db/src/core/integration/vite-plugin-db.ts | 4 | ||||
-rw-r--r-- | packages/db/test/fixtures/static-remote/db/seed.ts | 4 | ||||
-rw-r--r-- | packages/db/test/fixtures/static-remote/src/pages/index.astro | 5 |
3 files changed, 6 insertions, 7 deletions
diff --git a/packages/db/src/core/integration/vite-plugin-db.ts b/packages/db/src/core/integration/vite-plugin-db.ts index 9d9d50ca1..76f374736 100644 --- a/packages/db/src/core/integration/vite-plugin-db.ts +++ b/packages/db/src/core/integration/vite-plugin-db.ts @@ -1,10 +1,10 @@ import { fileURLToPath } from 'node:url'; +import type { AstroConfig } from 'astro'; import { normalizePath } from 'vite'; import { SEED_DEV_FILE_NAME } from '../../runtime/queries.js'; import { DB_PATH, RUNTIME_CONFIG_IMPORT, RUNTIME_IMPORT, VIRTUAL_MODULE_ID } from '../consts.js'; import type { DBTables } from '../types.js'; import { type VitePlugin, getDbDirectoryUrl, getRemoteDatabaseUrl } from '../utils.js'; -import type { AstroConfig } from 'astro'; const WITH_SEED_VIRTUAL_MODULE_ID = 'astro:db:seed'; @@ -154,7 +154,7 @@ export function getStudioVirtualModContents({ }) { function appTokenArg() { if (isBuild) { - if(output === 'server') { + if (output === 'server') { // In production build, always read the runtime environment variable. return 'process.env.ASTRO_STUDIO_APP_TOKEN'; } else { diff --git a/packages/db/test/fixtures/static-remote/db/seed.ts b/packages/db/test/fixtures/static-remote/db/seed.ts index 7d88d1ec4..2c86f02a1 100644 --- a/packages/db/test/fixtures/static-remote/db/seed.ts +++ b/packages/db/test/fixtures/static-remote/db/seed.ts @@ -3,7 +3,7 @@ import { User, db } from 'astro:db'; export default async function () { await db.insert(User).values([ { - name: 'Houston' - } + name: 'Houston', + }, ]); } diff --git a/packages/db/test/fixtures/static-remote/src/pages/index.astro b/packages/db/test/fixtures/static-remote/src/pages/index.astro index 7956b482c..849e65d18 100644 --- a/packages/db/test/fixtures/static-remote/src/pages/index.astro +++ b/packages/db/test/fixtures/static-remote/src/pages/index.astro @@ -3,6 +3,7 @@ import { User, db } from 'astro:db'; const users = await db.select().from(User); --- + <html> <head> <title>Testing</title> @@ -12,9 +13,7 @@ const users = await db.select().from(User); <h2>Users</h2> <ul> - {users.map(user => ( - <li>{user.name}</li> - ))} + {users.map((user) => <li>{user.name}</li>)} </ul> </body> </html> |