123-x-ed-eied 中文文档教程
这是一个 Next.js 项目,使用 create-next-app
。
Getting Started
首先,运行开发服务器:
npm run dev
# or
yarn dev
使用浏览器打开 http://localhost:3000 以查看结果。
您可以通过修改 pages/index.tsx
开始编辑页面。 该页面会在您编辑文件时自动更新。
API 路由 可以在 上访问http://localhost:3000/api/你好。 可以在 pages/api/hello.ts
中编辑此端点。
pages/api
目录映射到 /api/*
。 此目录中的文件被视为 API 路由 而不是 React 页面。
Learn More
要了解有关 Next.js 的更多信息,请查看以下资源:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
您可以查看 Next.js GitHub 存储库 - 欢迎您的反馈和贡献!
Deploy on Vercel
部署 Next.js 应用程序的最简单方法是使用 Vercel 平台 来自 Next.js 的创建者。
查看我们的 Next.js 部署文档了解更多详情。
This is a Next.js project bootstrapped with create-next-app
.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.