{"id":48203,"date":"2022-11-23T09:49:12","date_gmt":"2024-02-27T20:18:46","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/"},"modified":"2024-04-29T02:05:58","modified_gmt":"2024-04-28T18:05:58","slug":"%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868"},"content":{"rendered":"<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Next.js+TypeScript+AWS Amplify+Recoil\u521b\u5efa\u73b0\u4ee3\u5316\u7684ToDo\u5217\u8868\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/1-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5e0c\u671b\u60a8\u80fd\u5728GitHub\u4e0a\u67e5\u627e\u5e76\u62a5\u544a\u4efb\u4f55\u95ee\u9898\u6216\u4e0d\u6070\u5f53\u7684\u5b9e\u73b0\u3002\u8bf7\u968f\u65f6\u63d0\u4ea4Issue\u6216Pull-Request\uff0c\u975e\u5e38\u611f\u8c22\u3002<\/p>\n<h2>\u80cc\u666f\u6982\u8ff0<\/h2>\n<p>\u5e73\u65f6\u6211\u4e2a\u4eba\u4f7f\u7528Ruby on Rails\u8fdb\u884c\u5f00\u53d1\u3002\u8bf4\u5b9e\u8bdd\uff0cJavaScript\u6211\u8fd8\u4e0d\u592a\u64c5\u957f\u3002<\/p>\n<p>Rails\u4ee5\u5176\u5feb\u901f\u5f00\u53d1\u5e94\u7528\u7684\u7279\u70b9\u800c\u5438\u5f15\u4eba\uff0c\u4f46\u5728\u9700\u8981\u4e0e\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u6216\u8981\u6c42\u4e30\u5bcc\u7528\u6237\u754c\u9762\u7684\u9879\u76ee\u4e2d\uff0c\u4e0d\u5f97\u4e0d\u91c7\u7528\u524d\u540e\u7aef\u5206\u79bb\u7684\u67b6\u6784\u3002<br \/>\n\u5728\u8fd9\u79cd\u67b6\u6784\u4e0b\uff0c\u53cd\u800c\u89c9\u5f97Rails\u8fc7\u4e8e\u590d\u6742\uff0c\u6211\u4e00\u76f4\u60f3\u5c1d\u8bd5\u4f7f\u7528\u50cfAWS Amplify\u8fd9\u6837\u5feb\u901f\u6784\u5efa\u540e\u7aef\u7684\u670d\u52a1\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u51b3\u5b9a\u4f7f\u7528Next.js\u548cAWS Amplify\u6765\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5c1d\u8bd5\u5b66\u4e60\u6240\u8c13\u7684\u73b0\u4ee3\u5e94\u7528\u5f00\u53d1\u6280\u5de7\u3002<\/p>\n<h2>\u5e94\u7528\u7684\u6280\u672f\u8981\u7d20<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Next.js(React.js)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">AWS Amplify<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">TypeScript<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Recoil<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">React Hook Form<\/ul>\n<h2>\u521b\u5efa\u9879\u76ee<\/h2>\n<p>\u7531\u4e8eNext.js\u7684examples\u4e2d\u5df2\u7ecf\u53d1\u5e03\u4e86with-typescript-eslint-jest\uff0c\u6211\u4ee5\u6b64\u4e3a\u57fa\u7840\u8fdb\u884c\u4e86\u5f00\u53d1\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>create-next-app\r\n\u2714 What is your project named? \u2026 next-ts-amplify-recoil-todolist\r\n\u2714 Pick a template \u203a Example from the Next.js repo\r\n\u2714 Pick an example \u203a with-typescript-eslint-jest\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n<\/code><\/pre>\n<h2>\u653e\u5927\u5668\u7684\u5b89\u88c5<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5b89\u88c5AWS Amplify\u3002<\/p>\n<h3>\u521d\u59cb\u5316<\/h3>\n<p>\u8fd0\u884camplify init\u8fdb\u884c\u521d\u59cb\u5316\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"nb\">cd <\/span>next-ts-amplify-recoil-todolist\r\n<span class=\"nv\">$ <\/span>amplify init\r\n? Enter a name <span class=\"k\">for <\/span>the project todolist\r\n? Enter a name <span class=\"k\">for <\/span>the environment dev\r\n? Choose your default editor: Visual Studio Code\r\n? Choose the <span class=\"nb\">type <\/span>of app that you<span class=\"se\">\\'<\/span>re building javascript\r\nPlease tell us about your project\r\n? What javascript framework are you using react\r\n? Source Directory Path: src\r\n? Distribution Directory Path: out\r\n? Build Command:  npm run-script build\r\n? Start Command: npm run-script start\r\n? Do you want to use an AWS profile? Yes\r\n? Please choose the profile you want to use <span class=\"o\">(<\/span>\u4f7f\u7528\u3059\u308bprofile<span class=\"o\">)<\/span>\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u907f\u514d\u5728\u6258\u7ba1\u65f6\u51fa\u73b0\u95ee\u9898\uff0c\u6211\u4eec\u5c06\u5206\u53d1\u76ee\u5f55\u8def\u5f84\u8bbe\u7f6e\u4e3a&#8221;out&#8221;\u3002\u8be6\u7ec6\u4fe1\u606f\u8bf7\u53c2\u9605\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n<h3>\u6258\u7ba1\uff08\u5305\u62ecCI\/CD\uff09<\/h3>\n<p>\u57fa\u4e8e\u7ecf\u9a8c\uff0c\u82e5\u5728\u540e\u671f\u6dfb\u52a0\u6258\u7ba1\uff0c\u5219\u96be\u4ee5\u8fdb\u884c\u6545\u969c\u6392\u9664\uff0c\u56e0\u6b64\u5efa\u8bae\u5c3d\u65e9\u4f7f\u7528CI\/CD\u8bbe\u7f6e\u6258\u7ba1\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f amplify add hosting\r\n? Select the plugin module to execute Hosting with Amplify Console <span class=\"o\">(<\/span>Managed hosting with custom domains, Continuous deployment<span class=\"o\">)<\/span>\r\n? Choose a <span class=\"nb\">type <\/span>Continuous deployment <span class=\"o\">(<\/span>Git-based deployments<span class=\"o\">)<\/span>\r\n? Continuous deployment is configured <span class=\"k\">in <\/span>the Amplify Console. Please hit enter once you connect your repository\r\n<span class=\"c\"># \u30d6\u30e9\u30a6\u30b6\u3067AWS Amplify Console\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u8af8\u3005\u8a2d\u5b9a\u3092\u3057\u305f\u5f8c\u3001Enter\u3092\u5165\u529b<\/span>\r\nAmplify hosting urls: \r\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\r\n\u2502 FrontEnd Env \u2502 Domain                                       \u2502\r\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\r\n\u2502 master       \u2502 https:\/\/master.d14mfq14xzgfle.amplifyapp.com \u2502\r\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u5c06 build \u8f93\u51fa\u76ee\u5f55\u66f4\u6539\u4e3a out\uff0c\u60a8\u9700\u8981\u5728\u672c\u5730\u73af\u5883\u4e2d\u4fee\u6539 package.json \u7684\u4e00\u90e8\u5206\u3002<br \/>\n\u8bf7\u53c2\u8003\u6b64\u6587\u7ae0\u4ee5\u83b7\u53d6\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5728Amplify\u63a7\u5236\u53f0\u7684\u201c\u6784\u5efa\u914d\u7f6e\u201d\u4e2d\uff0c\u5c06amplify.yml\u6587\u4ef6\u4fee\u6539\u4e3a\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"na\">version<\/span><span class=\"pi\">:<\/span> <span class=\"m\">1<\/span>\r\n<span class=\"na\">backend<\/span><span class=\"pi\">:<\/span>\r\n  <span class=\"na\">phases<\/span><span class=\"pi\">:<\/span>\r\n    <span class=\"na\">build<\/span><span class=\"pi\">:<\/span>\r\n      <span class=\"na\">commands<\/span><span class=\"pi\">:<\/span>\r\n        <span class=\"pi\">-<\/span> <span class=\"s1\">'<\/span><span class=\"s\">#<\/span> <span class=\"s\">Execute<\/span> <span class=\"s\">Amplify<\/span> <span class=\"s\">CLI<\/span> <span class=\"s\">with<\/span> <span class=\"s\">the<\/span> <span class=\"s\">helper<\/span> <span class=\"s\">script'<\/span>\r\n        <span class=\"pi\">-<\/span> <span class=\"s\">amplifyPush --simple<\/span>\r\n<span class=\"na\">frontend<\/span><span class=\"pi\">:<\/span>\r\n  <span class=\"na\">phases<\/span><span class=\"pi\">:<\/span>\r\n    <span class=\"na\">preBuild<\/span><span class=\"pi\">:<\/span>\r\n      <span class=\"na\">commands<\/span><span class=\"pi\">:<\/span>\r\n        <span class=\"pi\">-<\/span> <span class=\"s\">yarn install<\/span>\r\n    <span class=\"na\">build<\/span><span class=\"pi\">:<\/span>\r\n      <span class=\"na\">commands<\/span><span class=\"pi\">:<\/span>\r\n        <span class=\"pi\">-<\/span> <span class=\"s\">yarn run build<\/span>\r\n  <span class=\"na\">artifacts<\/span><span class=\"pi\">:<\/span>\r\n    <span class=\"na\">baseDirectory<\/span><span class=\"pi\">:<\/span> <span class=\"s\">out<\/span>\r\n    <span class=\"na\">files<\/span><span class=\"pi\">:<\/span>\r\n      <span class=\"pi\">-<\/span> <span class=\"s1\">'<\/span><span class=\"s\">**\/*'<\/span>\r\n  <span class=\"na\">cache<\/span><span class=\"pi\">:<\/span>\r\n    <span class=\"na\">paths<\/span><span class=\"pi\">:<\/span>\r\n      <span class=\"pi\">-<\/span> <span class=\"s\">node_modules\/**\/*<\/span>\r\n<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u9700\u8981\u5728\u300c\u6784\u5efa\u8bbe\u7f6e\u300d\u2192\u300c\u6784\u5efa\u955c\u50cf\u8bbe\u7f6e\u300d\u2192\u300c\u7f16\u8f91\u300d\u2192\u300c\u5b9e\u65f6\u8f6f\u4ef6\u5305\u66f4\u65b0\u300d\u4e2d\u5c06Amplify CLI\u8bbe\u7f6e\u4e3alatest\u3002\u5982\u679c\u4e0d\u8fd9\u6837\u505a\uff0c\u90e8\u7f72\u5c06\u4f1a\u5931\u8d25\uff0c\u56e0\u6b64\u8bf7\u52a1\u5fc5\u6ce8\u610f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/26-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5f53\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u8bbf\u95ee\u663e\u793a\u7684URL\u5373\u53ef\u67e5\u770b\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/28-0.png\" alt=\"image.png\" \/><\/div>\n<h3>\u8eab\u4efd\u9a8c\u8bc1\u4f53\u7cfb<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6dfb\u52a0\u8ba4\u8bc1\u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>amplify add auth\r\n? Do you want to use the default authentication and security configuration? Default configuration\r\n? How <span class=\"k\">do <\/span>you want <span class=\"nb\">users <\/span>to be able to sign <span class=\"k\">in<\/span>? Username\r\n? Do you want to configure advanced settings? No, I am <span class=\"k\">done<\/span><span class=\"nb\">.<\/span>\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n\r\n<span class=\"nv\">$ <\/span>amplify push\r\n\u2714 Successfully pulled backend environment production from the cloud.\r\n\r\nCurrent Environment: production\r\n\r\n| Category | Resource name        | Operation | Provider plugin   |\r\n| <span class=\"nt\">--------<\/span> | <span class=\"nt\">--------------------<\/span> | <span class=\"nt\">---------<\/span> | <span class=\"nt\">-----------------<\/span> |\r\n| Auth     | besttodolistf818478c | Create    | awscloudformation |\r\n| Hosting  | amplifyhosting       | No Change |                   |\r\n? Are you sure you want to <span class=\"k\">continue<\/span>? Yes\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n<\/code><\/pre>\n<h3>GraphQL API<br \/>\nGraphQL API<\/h3>\n<p>\u6211\u4f1a\u63d0\u524d\u521b\u5efaGraphQL\u7684\u6a21\u5f0f\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">type<\/span> <span class=\"n\">Todo<\/span> <span class=\"err\">@<\/span><span class=\"n\">model<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"n\">id<\/span><span class=\"p\">:<\/span> <span class=\"nb\">ID<\/span><span class=\"p\">!<\/span>\r\n  <span class=\"n\">name<\/span><span class=\"p\">:<\/span> <span class=\"nb\">String<\/span><span class=\"p\">!<\/span>\r\n  <span class=\"n\">completed<\/span><span class=\"p\">:<\/span> <span class=\"nb\">Boolean<\/span><span class=\"p\">!<\/span>\r\n  <span class=\"n\">timestamp<\/span><span class=\"p\">:<\/span> <span class=\"n\">AWSTimestamp<\/span><span class=\"p\">!<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u7528\u4ee5\u4e0b\u7684\u547d\u4ee4\u6dfb\u52a0\u540e\u7aef\u7684GraphQL API\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>amplify add api\r\n? Please <span class=\"k\">select <\/span>from one of the below mentioned services: GraphQL\r\n? Provide API name: todolist\r\n? Choose the default authorization <span class=\"nb\">type <\/span><span class=\"k\">for <\/span>the API Amazon Cognito User Pool\r\nUse a Cognito user pool configured as a part of this project.\r\n? Do you want to configure advanced settings <span class=\"k\">for <\/span>the GraphQL API No, I am <span class=\"k\">done<\/span><span class=\"nb\">.<\/span>\r\n? Do you have an annotated GraphQL schema? Yes\r\n? Provide your schema file path: .\/schema.graphql\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u9884\u9632\u8d77\u89c1\uff0c\u6211\u4f1a\u542f\u52a8\u4e00\u4e2a\u6a21\u62df\u670d\u52a1\u5668\u8fdb\u884c\u64cd\u4f5c\u786e\u8ba4\u3002<br \/>\n\u8fd9\u65f6\uff0c\u5ba2\u6237\u7aef\u7684\u4ee3\u7801\u4e5f\u4f1a\u88ab\u751f\u6210\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>amplify mock api\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\nRunning GraphQL codegen\r\n? Choose the code generation language target typescript\r\n? Enter the file name pattern of graphql queries, mutations and subscriptions src\/graphql\/<span class=\"k\">**<\/span>\/<span class=\"k\">*<\/span>.ts\r\n? Do you want to generate\/update all possible GraphQL operations - queries, mutations and subscriptions Yes\r\n? Enter maximum statement depth <span class=\"o\">[<\/span>increase from default <span class=\"k\">if <\/span>your schema is deeply nested] 2\r\n? Enter the file name <span class=\"k\">for <\/span>the generated code src\/API.ts\r\n? Do you want to generate code <span class=\"k\">for <\/span>your newly created GraphQL API Yes\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\nAppSync Mock endpoint is running at http:\/\/xxx.xxx.xxx.xxx:20002\r\n<\/code><\/pre>\n<p>\u5f53\u60a8\u8bbf\u95ee\u6240\u63d0\u4f9b\u7684URL\u65f6\uff0c\u5c06\u663e\u793aGraphiql\u754c\u9762\uff0c\u60a8\u53ef\u4ee5\u5728\u6b64\u754c\u9762\u4e0a\u6d4b\u8bd5GraphQL\u8bf7\u6c42\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/40-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5982\u679c\u6ca1\u6709\u7279\u522b\u7684\u95ee\u9898\u7684\u8bdd\uff0c\u6211\u4eec\u53ef\u4ee5\u6267\u884camplify push\u3002<\/p>\n<pre class=\"post-pre\"><code>\u276f amplify push\r\n\u2714 Successfully pulled backend environment production from the cloud.\r\n\r\nCurrent Environment: production\r\n\r\n| Category | Resource name        | Operation | Provider plugin   |\r\n| <span class=\"nt\">--------<\/span> | <span class=\"nt\">--------------------<\/span> | <span class=\"nt\">---------<\/span> | <span class=\"nt\">-----------------<\/span> |\r\n| Api      | bestTodolist         | Create    | awscloudformation |\r\n| Hosting  | amplifyhosting       | No Change |                   |\r\n| Auth     | besttodolistf818478c | No Change | awscloudformation |\r\n? Are you sure you want to <span class=\"k\">continue<\/span>? Yes\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n? Do you want to update code <span class=\"k\">for <\/span>your updated GraphQL API Yes\r\n? Do you want to generate GraphQL statements <span class=\"o\">(<\/span>queries, mutations and subscription<span class=\"o\">)<\/span> based on your schema types?\r\nThis will overwrite your current graphql queries, mutations and subscriptions Yes\r\n<span class=\"c\"># \u7701\u7565<\/span>\r\n<\/code><\/pre>\n<h2>\u524d\u7aef\u5b9e\u73b0<\/h2>\n<h3>\u5b89\u88c5npm\u5305<\/h3>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>yarn add @material-ui\/core @material-ui\/icons aws-amplify @aws-amplify\/ui-react react-hook-form recoil\r\n<\/code><\/pre>\n<h3>\u6dfb\u52a0\u5bf9 Lint\/Formatter \u4e2d\u7684ignore \u7684\u5ffd\u7565<\/h3>\n<p>\u4e0b\u9762\u7684\u6587\u4ef6\u7531Next.js\u5bfc\u51fa\uff0c\u6216\u7531AWS Amplify\u81ea\u52a8\u751f\u6210\u7684\u4ee3\u7801\u5c06\u88ab\u6392\u9664\u5728Lint\/Formatter\u7684\u68c0\u67e5\u8303\u56f4\u4e4b\u5916\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"k\">**<\/span>\/node_modules\/<span class=\"k\">*<\/span>\r\n<span class=\"k\">**<\/span>\/out\/<span class=\"k\">*<\/span>\r\n<span class=\"k\">**<\/span>\/.next\/<span class=\"k\">*<\/span>\r\nsrc\/aws-exports.js\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>node_modules\r\n.next\r\nyarn.lock\r\npackage-lock.json\r\npublic\r\nout\r\n<\/code><\/pre>\n<h3>\u5b9e\u73b0\u9875\u9762\u7684\u6982\u89c8<\/h3>\n<p>\u8bf7\u5c06\u4ee5\u4e0b\u6587\u4ef6\u590d\u5236\u5e76\u7c98\u8d34\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\u3002<\/p>\n<h4>\u9875\u9762 (mian4yi3)<\/h4>\n<p>\u9700\u8981\u57fa\u4e8e _app.tsx \u548c _document.tsx \u8fdb\u884c\u5f00\u53d1\u3002<br \/>\n\u636e\u6211\u6240\u77e5\uff0c\u76ee\u524d _document.tsx \u4e0d\u652f\u6301\u4ee5\u51fd\u6570\u7ec4\u4ef6\u7684\u65b9\u5f0f\u7f16\u5199\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u9700\u8981\u7528\u4e2d\u6587\u91cd\u8ff0\u7684\u94fe\u63a5\uff1a<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/pages\/_app.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/pages\/_document.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/pages\/index.tsx<\/p>\n<h4>\u7ec4\u4ef6<\/h4>\n<p>\u6211\u5011\u5c07\u5275\u5efa\u6210\u70ba\u6bcf\u500b\u9801\u9762\u5143\u4ef6\u7684\u7d44\u4ef6\u3002<\/p>\n<p>\u8bf7\u5c06\u4ee5\u4e0b\u5185\u5bb9\u7528\u4e2d\u6587\u672c\u5730\u5316\uff0c\u53ea\u9700\u63d0\u4f9b\u4e00\u79cd\u7ffb\u8bd1\u9009\u9879\uff1a<\/p>\n<p>https:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Header.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Footer.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Todo.tsx<\/p>\n<p>https:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Header.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Footer.tsx<br \/>\nhttps:\/\/github.com\/yuuu\/next-ts-amplify-recoil-todolist\/blob\/master\/src\/component\/Todo.tsx<\/p>\n<h4>\u5546\u5e97<\/h4>\n<p>\u5982\u679c\u53ea\u662f\u666e\u901a\u7684\u4efb\u52a1\u6e05\u5355\u7ea7\u522b\uff0c\u5c31\u6ca1\u5fc5\u8981\u4f7f\u7528\u5b58\u50a8\u4e86\uff0c\u4f46\u662f\u6211\u51b3\u5b9a\u5c1d\u8bd5\u4e00\u4e0b\u4e00\u76f4\u60f3\u7528\u7684 Recoil\u3002<\/p>\n<h4>\u4e3b\u9898<\/h4>\n<p>\u5b9a\u4e49\u7528\u4e8eMaterial UI\u7684\u57fa\u672c\u4e3b\u9898\u3002<\/p>\n<h3>\u786e\u8ba4\u884c\u52a8<\/h3>\n<p>\u5f53CI\/CD\u987a\u5229\u5b8c\u6210\uff0c\u5f53\u8bbf\u95ee\u9875\u9762\u65f6\u5c06\u663e\u793a\u767b\u5f55\u754c\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/67-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u521b\u5efa\u4e00\u4e2a\u5e10\u6237\u540e\uff0c\u5c31\u80fd\u591f\u8fdb\u884c\u767b\u5f55\u3002\u6210\u529f\u5730\u663e\u793a\u4e86\u5217\u8868\u753b\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/69-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u5176\u4ed6\u5c4f\u5e55\u7684\u5b9e\u65bd<\/h2>\n<h3>\u6ce8\u518c\u9875\u9762<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/72-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5c06\u4e0b\u4e00\u4e2a\u6587\u4ef6\u6dfb\u52a0\u5230\u9875\u9762\u4e2d\u3002<\/p>\n<p>\u4e3a\u4e86\u5728\u7f16\u8f91\u754c\u9762\u4e0a\u4e5f\u80fd\u4f7f\u7528\u8be5\u8868\u5355\uff0c\u6211\u4eec\u5c06\u5176\u7ec4\u4ef6\u5316\u3002<\/p>\n<h3>\u8be6\u7ec6\u753b\u9762<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/78-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5c06\u4e0b\u4e00\u4e2a\u6587\u4ef6\u6dfb\u52a0\u5230\u9875\u9762\u4e2d\u3002<\/p>\n<h3>\u7f16\u8f91\u754c\u9762<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/82-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5c06\u4e0b\u4e00\u4e2a\u6587\u4ef6\u6dfb\u52a0\u5230\u9875\u9762\u4e2d\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728\u672c\u5730\u73af\u5883\u4e0b\u5f00\u53d1\u5e94\u7528\uff0c\u5e76\u6210\u529f\u5730\u5bf9\u5c4f\u5e55\u8fdb\u884c\u4e86\u8c03\u6574\uff0c\u4f46\u5728\u6301\u7eed\u96c6\u6210\/\u6301\u7eed\u4ea4\u4ed8\uff08CI\/CD\uff09\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u8bb8\u591a\u56f0\u96be\uff0c\u8ba9\u6211\u82e6\u4e0d\u582a\u8a00\u3002<br \/>\n\u5982\u679c\u73af\u5883\u4e00\u76f4\u4fdd\u6301\u8fd9\u6837\uff0c\u6211\u89c9\u5f97\u4ee5\u540e\u53ef\u4ee5\u9ad8\u901f\u5730\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<p>\u8bf7\u52a1\u5fc5\u8bd5\u8bd5\u770b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Next.js+TypeScript+AWS Amplify+Recoil\u521b\u5efa\u73b0\u4ee3\u5316\u7684ToD [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-48203","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528next-js-typescript-aws-amplify-recoil\u6765\u521b\u5efatodo\u5217\u8868\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Next.js+TypeScript+AWS Amplify+Recoil\u521b\u5efa\u73b0\u4ee3\u5316\u7684ToD [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528next-js-typescript-aws-amplify-recoil\u6765\u521b\u5efatodo\u5217\u8868\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-27T20:18:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T18:05:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/1-0.png\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/\",\"name\":\"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-27T20:18:46+00:00\",\"dateModified\":\"2024-04-28T18:05:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528next-js-typescript-aws-amplify-recoil\u6765\u521b\u5efatodo\u5217\u8868\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868","og_description":"\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Next.js+TypeScript+AWS Amplify+Recoil\u521b\u5efa\u73b0\u4ee3\u5316\u7684ToD [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528next-js-typescript-aws-amplify-recoil\u6765\u521b\u5efatodo\u5217\u8868\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-27T20:18:46+00:00","article_modified_time":"2024-04-28T18:05:58+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d83f3913a08637a6b4b91\/1-0.png"}],"author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/","name":"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-27T20:18:46+00:00","dateModified":"2024-04-28T18:05:58+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Next.js+ TypeScript+ AWS Amplify+ Recoil\u6765\u521b\u5efaToDo\u5217\u8868"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8next-js-typescript-aws-amplify-recoil%e6%9d%a5%e5%88%9b%e5%bb%batodo%e5%88%97%e8%a1%a8%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=48203"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48203\/revisions"}],"predecessor-version":[{"id":73791,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/48203\/revisions\/73791"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=48203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=48203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=48203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}