docs: added new database options for create-medusa-app (#4777)

* docs: added new database options for create-medusa-app

* update note

* removed stable option

* add example to connect to Vercel or Supabase database

* added a note about --db-url option

* added a note about --no-migrations

* added troubleshooting guide for invalid token error with no-browser

* fix link
This commit is contained in:
Shahed Nasser
2023-08-17 20:21:32 +03:00
committed by GitHub
parent 80b1bff8cb
commit 3b5590ccec
3 changed files with 57 additions and 15 deletions
@@ -4,6 +4,7 @@ title: 'Common Create-React-App Errors'
import TypeError from './create-medusa-app-errors/_typeerror.md'
import OtherErrors from './create-medusa-app-errors/_other-errors.mdx'
import InvalidTokenError from './create-medusa-app-errors/_no-browser-token-error.md'
## TypeError: cmd is not a function
@@ -11,6 +12,12 @@ import OtherErrors from './create-medusa-app-errors/_other-errors.mdx'
---
## Invalid Token Error with --no-browser Option
<InvalidTokenError />
---
## Other Errors
<OtherErrors />
@@ -0,0 +1,5 @@
If you use the `--no-browser` option with the `create-medusa-app` command, you'll find a URL outputted at the end of the command execution. This is the URL that you can use to set a password for your admin user.
However, if you copy the URL, then try later to access that URL, you may receive an "Invalid Token" error. This is because when you copy the URL, a lot of extra space may be added into the token. So, you must clear out the spaces within the token and the `||` characters, then try again.
Alternatively, you can create a new user with the [medusa user](../../cli/reference.mdx#user) command.