Skip to content

Commit

Permalink
Merge pull request #537 from mwskwong/canary
Browse files Browse the repository at this point in the history
Canary
  • Loading branch information
mwskwong authored Feb 5, 2025
2 parents 5370a9f + 841ce5a commit 53bc144
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Welcome to the source code of [mwskwong.com](https://mwskwong.com). You can see

```js
navigator.clipboard.writeText(
`canary_${new Date().toISOString().replaceAll(":", "-")}`
`canary_${new Date().toISOString().replaceAll(":", "-")}`,
);
```

Expand Down
5 changes: 2 additions & 3 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { config } from "dotenv";
import { defineConfig } from "drizzle-kit";
import "dotenv/config";

config({ path: ".env" });
import { defineConfig } from "drizzle-kit";

const drizzleConfig = defineConfig({
schema: "./src/lib/schema.ts",
Expand Down
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@vercel/analytics": "^1.4.1",
"@vercel/speed-insights": "^1.1.0",
"clsx": "^2.1.1",
"contentful": "^11.4.4",
"contentful": "^11.4.5",
"dedent": "^1.5.3",
"dotenv": "^16.4.7",
"drizzle-orm": "^0.39.1",
Expand Down
3 changes: 2 additions & 1 deletion src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const robots = () =>
({
rules: {
userAgent: "*",
disallow: process.env.VERCEL_ENV === "production" ? routes.params.pathname : "/",
disallow:
process.env.VERCEL_ENV === "production" ? routes.params.pathname : "/",
},
sitemap: `${siteUrl}/sitemap.xml`,
}) satisfies MetadataRoute.Robots;
Expand Down
3 changes: 0 additions & 3 deletions src/lib/clients.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import "server-only";

import { createClient } from "contentful";
import { config } from "dotenv";
import { drizzle } from "drizzle-orm/neon-http";

config({ path: ".env" });

export const contentful = createClient({
space: process.env.CONTENTFUL_SPACE_ID ?? "",
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN ?? "",
Expand Down

1 comment on commit 53bc144

@vercel
Copy link

@vercel vercel bot commented on 53bc144 Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.