From 8854a4c16880078f4e6306eb9a8e1b5149f65c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:53:57 -0300 Subject: [PATCH 1/7] Update README.md - Next + Turso template --- templates/nextjs-app-13-5-6-turso/README.md | 40 ++++++++------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index 7cad3cba..4e28ea44 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -1,36 +1,24 @@ -# Nextjs v13.5.6 Edge Runtime -Nextjs v13.5.6 project example using edge runtime and app format. +# Next.js App + Configurations + Turso -This example contains: -* Index page; -* Edge API Route; -* Custom Route Handlers; +The **Next.js App + Configurations + Turso** template provides a quick start to build a Next.js application with custom configurations, App Router, and integration with a Turso Database. -## Settings +This repository is an example of the new GitHub repository created during the deployment. For a more detailed step-by-step to deploy this template through Azion's platform, check the [How to deploy the Next.js App + Configurations + Turso](https://www.azion.com/en/documentation/products/guides/nextjs-app-configurations-turso/) guide. -To successfully deploy this template, you must provide the information to configure your Azion application. Fields identified with an asterisk are mandatory. +This template uses Next.js version `13.5.6` and LibSQL `0.5.3`. - * **Application Name***: the name of your edge application on Azion. - * **GitHub Personal Token***: your GitHub personal token. - * While generating your GitHub personal token, grant that your scope has the permissions to authorize an OAuth app or a personal token to access to public and private repositories, including read and write access to code. You must also enable the workflow option to allow adding and updating GitHub Actions workflow files. +--- -Note that permissions can be scoped either to a user or an organization or to a repository. Read the [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) documentation for more information. +## Usage Information -After filling out the form, click the **Next** button to start the deployment process. +To use this template, you must [sign in on Azion Cosole](https://console.azion.com/login). -Once the template is deployed, you can edit and update your args and code. However, you'll need to declare secrets on your project's GitHub repository first to complete the second build with these changes. When the second build is completed, you can manage your project with a [continuous deployment workflow](#continuous-deployment). +> If you haven't an account, go to the [signup page](https://console.azion.com/signup) to complete the registration. -For a more detailed step-by-step on declaring your secrets and using this template, check the [How to deploy edge applications with the Next.js Static Boilerplate](https://www.azion.com/en/documentation/products/guides/nextjs-static-boilerplate/) guide for more details. +To successfully deploy this template, you need to provide the information to configure your Azion application, as shown in the **Settings** tab on the template's page. -## Important +For a more detailed step-by-step on using this template and requirements, check the [How to deploy the Next.js App + Configurations + Turso](https://www.azion.com/en/documentation/products/guides/nextjs-app-configurations-turso/) guide. -To guarantee the optimal performance of this template, it's necessary to activate the following Azion product: - -* [Edge Functions](https://www.azion.com/en/documentation/products/edge-application/edge-functions/#edge-functions-management) - -You need to activate the product separately via RTM. Review the [Azion documentation](https://www.azion.com/en/documentation/products/guides/nextjs-static-boilerplate/) to do so. - -If this product is activated, the execution of this template could generate usage-related costs. Check the [pricing page](https://www.azion.com/en/pricing/) for more information. +--- ## Continuous deployment @@ -39,7 +27,7 @@ Once the template is deployed, you can edit it and update it, as well as impleme To do so, open your repository in GitHub. Then, go to **Settings** > **Secrets and variables** > **Action** to [add your variables](https://docs.github.com/en/actions/security-guides/encrypted-secrets), following these instructions: 1. Add the Azion personal token to the *secrets*: -- Read [how to generate an Azion personal token](https://www.azion.com/en/documentation/products/accounts/personal-tokens/) in the documentation. +- Read [how to generate an Azion personal token](https://www.azion.com/en/documentation/products/guides/personal-tokens/) in the documentation. ```bash AZION_PERSONAL_TOKEN= @@ -64,10 +52,10 @@ Now your project is ready to work with a continuous deployment workflow, updatin ## Management -Considering that this initial setup may not be optimal for your specific edge application, all settings can be customized any time you need by using [Azion Real-Time Manager (RTM)](https://manager.azion.com/). +Considering that this initial setup may not be optimal for your specific edge application, all settings can be customized any time you need by using [Azion Console)](https://console.azion.com/). To manage and edit your edge application’s settings, read the documentation about [managing edge applications](https://www.azion.com/en/documentation/products/edge-application/first-steps/) for more details. ### Custom domain -The edge application created during the deployment has an assigned Azion domain to make it accessible through the browser. The domain has the following format: `xxxxxxxxxx.map.azionedge.net`. However, you can add a custom domain for users to access your edge application through it. Go to the [Domains](https://www.azion.com/en/documentation/products/edge-application/domains/) documentation to read more about it. \ No newline at end of file +The edge application created during the deployment has an assigned Azion domain to make it accessible through the browser. The domain has the following format: `xxxxxxxxxx.map.azionedge.net`. However, you can add a custom domain for users to access your edge application through it. Go to the [Domains](https://www.azion.com/en/documentation/products/guides/configure-a-domain/) documentation to read more about it. From 3746654ca611719a49802ae822b683b037c683d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:04:50 -0300 Subject: [PATCH 2/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index 4e28ea44..dc450693 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -8,7 +8,7 @@ This template uses Next.js version `13.5.6` and LibSQL `0.5.3`. --- -## Usage Information +## Usage information To use this template, you must [sign in on Azion Cosole](https://console.azion.com/login). From cdf9ed10e65ff17a8b667aea31ee068fae03f355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:09:41 -0300 Subject: [PATCH 3/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index dc450693..78fb2691 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -14,7 +14,7 @@ To use this template, you must [sign in on Azion Cosole](https://console.azion.c > If you haven't an account, go to the [signup page](https://console.azion.com/signup) to complete the registration. -To successfully deploy this template, you need to provide the information to configure your Azion application, as shown in the **Settings** tab on the template's page. +To successfully deploy this template, you need to provide the information to configure your Azion application, as requested in the **Settings** tab on the template's page. For a more detailed step-by-step on using this template and requirements, check the [How to deploy the Next.js App + Configurations + Turso](https://www.azion.com/en/documentation/products/guides/nextjs-app-configurations-turso/) guide. From 400fa769abc6560756969917a3342f19456292ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:31:53 -0300 Subject: [PATCH 4/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index 78fb2691..18ef4e3b 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -18,6 +18,15 @@ To successfully deploy this template, you need to provide the information to con For a more detailed step-by-step on using this template and requirements, check the [How to deploy the Next.js App + Configurations + Turso](https://www.azion.com/en/documentation/products/guides/nextjs-app-configurations-turso/) guide. +### Requirements + +- Create a [Turso account](https://accounts.turso.tech/sign-up). +- Install the [Turso CLI](https://docs.turso.tech/cli/introduction). +- Create a [database](https://docs.turso.tech/quickstart) with a table called `posts`, and the fields `id` and `message`. +- Generate your [GitHub personal token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic). +- Enable [Edge Functions and Application Accelerator](https://www.azion.com/en/documentation/products/guides/billing-and-subscriptions/) in your Azion account. + + --- ## Continuous deployment From 67853f5894198009681bacf2f30813b6108dc7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:32:19 -0300 Subject: [PATCH 5/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index 18ef4e3b..f3310c33 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -26,7 +26,6 @@ For a more detailed step-by-step on using this template and requirements, check - Generate your [GitHub personal token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic). - Enable [Edge Functions and Application Accelerator](https://www.azion.com/en/documentation/products/guides/billing-and-subscriptions/) in your Azion account. - --- ## Continuous deployment From af4458d18d36a8f60e2196c9021b649d21e2a64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:44:43 -0300 Subject: [PATCH 6/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index f3310c33..e62ea8a1 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -10,7 +10,7 @@ This template uses Next.js version `13.5.6` and LibSQL `0.5.3`. ## Usage information -To use this template, you must [sign in on Azion Cosole](https://console.azion.com/login). +To use this template, you must [sign in on Azion Console](https://console.azion.com/login). > If you haven't an account, go to the [signup page](https://console.azion.com/signup) to complete the registration. From 7aec8c20d1e4e2febf26e63577463bb746764c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariana=20Bellor=C3=ADn=20Aguilera?= <89138244+MarianaAguilera@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:42:45 -0300 Subject: [PATCH 7/7] Update templates/nextjs-app-13-5-6-turso/README.md --- templates/nextjs-app-13-5-6-turso/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nextjs-app-13-5-6-turso/README.md b/templates/nextjs-app-13-5-6-turso/README.md index e62ea8a1..7c290337 100644 --- a/templates/nextjs-app-13-5-6-turso/README.md +++ b/templates/nextjs-app-13-5-6-turso/README.md @@ -12,7 +12,7 @@ This template uses Next.js version `13.5.6` and LibSQL `0.5.3`. To use this template, you must [sign in on Azion Console](https://console.azion.com/login). -> If you haven't an account, go to the [signup page](https://console.azion.com/signup) to complete the registration. +> If you haven't created an account, go to the [signup page](https://console.azion.com/signup) to complete the registration. To successfully deploy this template, you need to provide the information to configure your Azion application, as requested in the **Settings** tab on the template's page.