Search
Star
Feedback
Setup for Free
Ā© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
React + Vite + Page Functions - Cloudflare Developers
CD
Cloudflare Developers
ā¢
3y ago
ā¢
12 replies
boywonder350
React + Vite + Page Functions
How do I get the ability to use vite along with page functions locally with wrangler
?
Currently I am running this script
:
"wrangler pages dev
-
-port
=8080
-
-proxy
=3000
-
-compatibility
-date
=2023
-05
-18
-
- bunx
-
-bun vite
"
and the vite server boots up and I can access
l
o
c
a
l
h
o
s
t
:3000 fine
. But when I try to do a get request for
localhost:3000/api/create-checkout-session
localhost:3000/api/create-checkout-session
I just get an empty page and not my api
. Not sure how to configure it so the function is served correctly
. Any ideas would be super helpful
!
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,436
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
React + Vite SPA
CD
Cloudflare Developers / workers-and-pages-help
16mo ago
React +Vite+ Js in Workers
CD
Cloudflare Developers / workers-and-pages-help
2y ago
Vite + React template internal server error
CD
Cloudflare Developers / workers-and-pages-help
5mo ago
Workers, react-router 7, vite, and wasm
CD
Cloudflare Developers / workers-and-pages-help
5mo ago