Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Cloudflare Pages #208

Merged
merged 7 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions wally-registry-frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# cloudflare
.wrangler/
1 change: 1 addition & 0 deletions wally-registry-frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
5 changes: 5 additions & 0 deletions wally-registry-frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import createMDX from "@next/mdx"
import type { NextConfig } from "next"
import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev';

const nextConfig: NextConfig = {
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
Expand All @@ -12,4 +13,8 @@ const withMDX = createMDX({
// Add markdown plugins here, as desired
})

if (process.env.NODE_ENV === 'development') {
await setupDevPlatform();
}

export default withMDX(nextConfig)
Loading
Loading