简体   繁体   English

如何在 Azion 上创建边缘应用程序?

[英]How do I create an edge application on Azion?

I want to use the azion's edge service to upload my project in react (image below) Click to see attachment我想使用 azion 的 edge 服务在 react 中上传我的项目(下图)点击查看附件

But i don't know hot to use the plataform, can somebody help?但是我不知道如何使用该平台,有人可以帮忙吗?

First: You need to create an Edge Application in the products menu (on the left), this will be your central application and all later settings (cdn, waf, edge functions...) will be applied to it.首先:您需要在产品菜单(左侧)中创建一个边缘应用程序,这将是您的中心应用程序,所有后续设置(cdn、waf、边缘功能......)都将应用于它。 Of course, you will need to configure a domain for this edge application (custom or automatically generated by the platform).当然,您需要为此边缘应用程序配置一个域(自定义或由平台自动生成)。

Second: You can't create an edge function react directly in the edge functions panel, that's because the project needs to be built to run on Azion's edge service.第二:您不能直接在边缘功能面板中创建边缘功能反应,这是因为需要构建项目才能在 Azion 的边缘服务上运行。 For that you will need to use the Azion CLI, found in this link: https://www.azion.com/en/documentation/products/CLI为此,您需要使用此链接中的 Azion CLI: https ://www.azion.com/en/documentation/products/CLI

This CLI allows you to create, build and publish React project (next.js and flareact are currently available) on the edge via command line.此 CLI 允许您通过命令行在边缘创建、构建和发布 React 项目(next.js 和flareact 目前可用)。

You can see the next.js documentation here https://www.azion.com/en/documentation/use-cases/nextjs-on-azion-platform and flareact (jamstack) here https://www.azion.com/en/documentation/use-cases/jamstack-using-flareact您可以在此处查看 next.js 文档https://www.azion.com/en/documentation/use-cases/nextjs-on-azion-platform和此处的flareact (jamstack) https://www.azion.com/ zh/文档/用例/jamstack-using-flareact

After that you just need to configure your edge application to execute the function you just created... and welcome to the edge.之后,您只需要配置您的边缘应用程序来执行您刚刚创建的功能......欢迎来到边缘。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM