-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cb9c0c5
Showing
7 changed files
with
738 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Next.js routes list action | ||
|
||
This action gets all routes of next.js app | ||
|
||
## Inputs | ||
### `base-url` | ||
|
||
Base URL you want to append routes to, usefull for passing already complete links. For more see `links` output | ||
|
||
## Outputs | ||
|
||
### `routes` | ||
|
||
List of available routes | ||
|
||
### `links` | ||
|
||
List of all avaiable complete links, only when `base-url` was passed to inputs | ||
|
||
## Example usage | ||
``` | ||
- name: get next.js routes step | ||
id: get-nextjs-routes | ||
uses: aurity/nextjs-get-routes-action@v1 | ||
with: | ||
base-url: https://markdown-website-git-test-get-pages-action3.aurity.vercel.app | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Get next.js routes' | ||
description: 'Get list of next.js routes from /pages directory' | ||
inputs: | ||
base-url: | ||
description: 'Base URL you want to append routes to, usefull for passing already complete links' | ||
outputs: | ||
routes: | ||
description: 'Array of next.js routes' | ||
links: | ||
description: 'String of next.js links, only when you passed base-url' | ||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' |
Oops, something went wrong.