Skip to content

Commit

Permalink
feat: 一旦Nodeでbuildするように修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
吉野敬太郎 authored and 吉野敬太郎 committed Mar 15, 2024
1 parent 8a1cae8 commit 660ea6c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"devDependencies": {
"@playwright/test": "^1.36.2",
"@tailwindcss/typography": "^0.5.9",
"@types/bun": "^1.0.8",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const config: PlaywrightTestConfig = {
},
/* start server when running the testing script */
webServer: {
command: "bun --bun run start",
command: "bun run start",
url: "http://localhost:4321/",
reuseExistingServer: !process.env.CI,
},
Expand Down
20 changes: 10 additions & 10 deletions src/library/postFetcher.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { createClient } from "microcms-js-sdk";
import type { MicroCMSQueries } from "microcms-js-sdk";
const client = createClient({
serviceDomain: import.meta.env.MICROCMS_SERVICE_DOMAIN,
apiKey: import.meta.env.MICROCMS_API_KEY,
serviceDomain: process.env.MICROCMS_SERVICE_DOMAIN as string,
apiKey: process.env.MICROCMS_API_KEY as string,
});

type Category = {
interface Category {
id: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
revisedAt: string;
name: string;
};
type Eyecatch = {
}
interface Eyecatch {
url: string;
height: number;
width: number;
};
export type Post = {
}
export interface Post {
id: string;
createdAt: string;
updatedAt: string;
Expand All @@ -29,13 +29,13 @@ export type Post = {
category: Category;
content: string;
description: string;
};
export type PostResponse = {
}
export interface PostResponse {
totalCount: number;
offset: number;
limit: number;
contents: Post[];
};
}

/**
* 記事を複数件取得する
Expand Down

0 comments on commit 660ea6c

Please sign in to comment.