- 가격표 섹션을 페이지 하단에서 히어로 바로 아래로 이동 - 상단 패딩 축소 (py-24 → pt-12 pb-24) - 서브탭(서울/글로벌 타입) 스타일을 메인탭과 동일하게 통일 - Pages Functions API 프록시 추가 (functions/) - wrangler.toml 및 TypeScript 설정 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
/**
|
|
* Health check endpoint
|
|
* GET /api/health → Worker GET /health
|
|
*/
|
|
|
|
import { type PagesFunction } from '@cloudflare/workers-types';
|
|
import { Env, createCorsPreflightResponse, proxyToWorker } from '../_shared/proxy';
|
|
|
|
export const onRequestGet: PagesFunction<Env> = async ({ env }) => {
|
|
return proxyToWorker(env, '/health', {
|
|
method: 'GET',
|
|
});
|
|
};
|
|
|
|
export const onRequestOptions: PagesFunction<Env> = async () => {
|
|
return createCorsPreflightResponse();
|
|
};
|