Skip to content

Commit

Permalink
refactor: ♻️ setup for Cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
yehezkielgunawan committed Jan 19, 2024
1 parent 23fe74f commit ce6982b
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"tailwind-merge": "^1.12.0"
},
"devDependencies": {
"@cloudflare/next-on-pages": "^1.8.5",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@testing-library/jest-dom": "^5.16.4",
Expand Down
4 changes: 4 additions & 0 deletions src/pages/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import PrimaryLink from "@/components/links/PrimaryLink";
import UnderlineLink from "@/components/links/UnderlineLink";
import UnstyledLink from "@/components/links/UnstyledLink";

export const config = {
runtime: "experimental-edge",
};

const Components = () => {
return (
<Layout>
Expand Down
4 changes: 4 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import Layout from "@/components/layouts/Layout";
import { baseURL } from "@/constants/baseConstants";
import clsxm from "@/lib/helpers/clsxm";

export const config = {
runtime: "experimental-edge",
};

const Home: NextPage = () => {
const [title, setTitle] = useState<string>("Title");
const [desc, setDesc] = useState<string>("Description");
Expand Down
Loading

1 comment on commit ce6982b

@vercel
Copy link

@vercel vercel bot commented on ce6982b Jan 19, 2024

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.