Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Apr 2, 2024
1 parent b1eda3d commit 5f5176b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/db/src/core/integration/vite-plugin-db.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions packages/db/test/fixtures/static-remote/db/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { User, db } from 'astro:db';
export default async function () {
await db.insert(User).values([
{
name: 'Houston'
}
name: 'Houston',
},
]);
}
5 changes: 2 additions & 3 deletions packages/db/test/fixtures/static-remote/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { User, db } from 'astro:db';
const users = await db.select().from(User);
---

<html>
<head>
<title>Testing</title>
Expand All @@ -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>

0 comments on commit 5f5176b

Please sign in to comment.