Closed eidam closed 2 years ago
Adding two initial Pages templates
Pages Functions CORS - using _middleware.ts to add needed CORS headers for /api path. https://stackblitz.com/fork/github/cloudflare/templates/tree/e/add-pages-templates/pages-functions-cors?file=functions%2Fapi%2F_middleware.ts,functions%2Fapi%2Ftime.ts&initialPath=/api/time
_middleware.ts
/api
Pages Functions static form - using static-forms Pages plugin. https://stackblitz.com/fork/github/cloudflare/templates/tree/e/add-pages-templates/pages-functions-static-form?file=functions%2F_middleware.ts,public%2Findex.html
Adding two initial Pages templates
Pages Functions CORS - using
_middleware.ts
to add needed CORS headers for/api
path. https://stackblitz.com/fork/github/cloudflare/templates/tree/e/add-pages-templates/pages-functions-cors?file=functions%2Fapi%2F_middleware.ts,functions%2Fapi%2Ftime.ts&initialPath=/api/timePages Functions static form - using static-forms Pages plugin. https://stackblitz.com/fork/github/cloudflare/templates/tree/e/add-pages-templates/pages-functions-static-form?file=functions%2F_middleware.ts,public%2Findex.html