File tree Expand file tree Collapse file tree 2 files changed +44
-5
lines changed
blog/2024-11-14-compose-ec2-deployment-ci
docs/tutorial/03-Customization Expand file tree Collapse file tree 2 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -365,20 +365,19 @@ terraform apply -auto-approve
365365
366366# # Step 6 - Migrate state to the cloud
367367
368- First deployment had to create S3 bucket and DynamoDB table for storing Terraform state. Now we need to migrate the state to the cloud.
368+ First deployment had to create S3 bucket for storing Terraform state. Now we need to migrate the state to the cloud.
369369
370370Add to the end of `main.tf` :
371371
372372` ` ` hcl title="main.tf"
373373
374- # Configure the backend to use the S3 bucket and DynamoDB table
374+ # Configure the backend to use the S3 bucket
375375terraform {
376376 backend "s3" {
377377 bucket = "<your_app_name>-terraform-state"
378378 key = "state.tfstate" # Define a specific path for the state file
379379 region = "eu-central-1"
380380 profile = "myaws"
381- dynamodb_table = "<your_app_name>-terraform-lock-table"
382381 use_lockfile = true
383382 }
384383}
@@ -423,7 +422,7 @@ jobs:
423422 - name: Set up Terraform
424423 uses: hashicorp/setup-terraform@v2
425424 with:
426- terraform_version: 1.4.6
425+ terraform_version: 1.10.1
427426 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
428427 - name: Start building
429428 env:
Original file line number Diff line number Diff line change @@ -419,4 +419,44 @@ mongoose, or just use raw SQL queries against your tables.
419419
420420Demo:
421421
422- 
422+ 
423+
424+ ## Custom pages without menu item
425+
426+ Sometimes you might need to add custom page but don't want to add it to the menu.
427+
428+ In this case you can add custom page using ` customization .customPages ` option:
429+
430+ ` ` ` ts title= " /index.ts"
431+ new AdminForth ({
432+ // ...
433+ customization: {
434+ customPages: [
435+ {
436+ path: ' /setup2fa' , // route path
437+ component: {
438+ file: ' @@/pages/TwoFactorsSetup.vue' ,
439+ meta: {
440+ title: ' Setup 2FA' , // meta title for this page
441+ customLayout: true // don't include default layout like menu/header
442+ }
443+ }
444+ }
445+ ]
446+ }
447+ })
448+ ` ` `
449+
450+ This will register custom page with path ` / setup2fa` and will not include it in the menu.
451+
452+ You can navigate user to this page using any router link, e.g.:
453+
454+ ` ` ` html
455+ < template>
456+ < Link to= " /setup2fa" > Setup 2FA < / Link>
457+ < / template>
458+ ` ` `
459+
460+ ` ` ` ts
461+ import { Link } from ' @/afcl' ;
462+ ` ` `
You can’t perform that action at this time.
0 commit comments