Skip to content

Commit a511cd9

Browse files
committed
chore: fix deploy with vercel button
fixed #962
1 parent a8a18e4 commit a511cd9

File tree

5 files changed

+56
-28
lines changed

5 files changed

+56
-28
lines changed

packages/next-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a sample project for Logto's Next.js SDK.
44

5-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Ftree%2Fmaster%2Fpackages%2Fnext-sample&env=APP_ID,APP_SECRET,ENDPOINT,BASE_URL,COOKIE_SECRET,RESOURCES,SCOPES&envDescription=Configuration%20needed%20to%20init%20Logto%20client&envLink=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Ftree%2Fmaster%2Fpackages%2Fnext-sample%2FREADME.md&project-name=logto-js&repository-name=logto-js)
5+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Fblob%2Fmaster%2Fpackages%2Fnext-sample&env=APP_ID,APP_SECRET,ENDPOINT,BASE_URL,COOKIE_SECRET&envDescription=Configuration%20needed%20to%20init%20Logto%20client&envLink=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Fblob%2Fmaster%2Fpackages%2Fnext-sample%2FREADME.md%23configuration)
66

77
## Configuration
88

packages/next-sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "next start"
1010
},
1111
"dependencies": {
12-
"@logto/next": "workspace:^",
12+
"@logto/next": "latest",
1313
"next": "^15.2.4",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",

packages/next-server-actions-sample/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a sample project for Logto's Next.js SDK (server actions).
44

5-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Ftree%2Fmaster%2Fpackages%2Fnext-sample&env=APP_ID,APP_SECRET,ENDPOINT,BASE_URL,COOKIE_SECRET,RESOURCES,SCOPES&envDescription=Configuration%20needed%20to%20init%20Logto%20client&envLink=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Ftree%2Fmaster%2Fpackages%2Fnext-server-actions-sample%2FREADME.md&project-name=logto-js&repository-name=logto-js)
5+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Fblob%2Fmaster%2Fpackages%2Fnext-server-actions-sample&env=APP_ID,APP_SECRET,ENDPOINT,BASE_URL,COOKIE_SECRET&envDescription=Configuration%20needed%20to%20init%20Logto%20client&envLink=https%3A%2F%2Fgithub.com%2Flogto-io%2Fjs%2Fblob%2Fmaster%2Fpackages%2Fnext-server-actions-sample%2FREADME.md%23configuration)
66

77
## Configuration
88

@@ -15,7 +15,7 @@ You can configure the sample project by modifying the `libraries/config.js` file
1515
| ENDPOINT | The endpoint of your Logto server | `http://localhost:3001` |
1616
| BASE_URL | The base URL of this application | `http://localhost:3000` |
1717
| COOKIE_SECRET | The secret for cookie encryption | `my-cookie-secret` |
18-
| RESOURCES | Optional, the API resource identifier, split with comma | `http://localhost:3003/,http://localhost:3004/]` |
18+
| RESOURCES | Optional, the API resource identifier, split with comma | `http://localhost:3003/,http://localhost:3004/` |
1919
| SCOPES | Optional, the scopes to grant, split with comma | `read:users,write:users` |
2020

2121
Learn more about resource and scopes in the [Logto RBAC Documentation](https://docs.logto.io/docs/recipes/rbac/protect-resource#configure-client-sdk).

packages/next-server-actions-sample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "next start"
1010
},
1111
"dependencies": {
12-
"@logto/next": "workspace:^",
12+
"@logto/next": "latest",
1313
"next": "^15.2.4",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0"

pnpm-lock.yaml

Lines changed: 51 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)