docs: improve getting started chapters (#10014)

This commit is contained in:
Shahed Nasser
2024-11-11 20:35:57 +02:00
committed by GitHub
parent fb05ca2b8a
commit a131a4468d
11 changed files with 144 additions and 43 deletions
@@ -4,19 +4,19 @@ You might see a log in your browser console, that looks like this:
![CORS error log](https://res.cloudinary.com/dza7lstvk/image/upload/v1668003322/Medusa%20Docs/Other/jnHK115_udgf2n.png)
In your `medusa-config.ts` , you should ensure that you've configured your CORS settings correctly:
In your `medusa-config.ts`, ensure that you've configured your CORS settings correctly:
```ts title="medusa-config.ts"
module.exports = defineConfig({
projectConfig: {
http: {
storeCors: process.env.STORE_CORS,
adminCors: process.env.ADMIN_CORS,
authCors: process.env.AUTH_CORS,
storeCors: process.env.STORE_CORS || "http://localhost:8000",
adminCors: process.env.ADMIN_CORS || "http://localhost:9000",
authCors: process.env.AUTH_CORS || "http://localhost:8000,http://localhost:9000",
},
// ...
},
})
```
Learn more about these configurations in [this documentation](/references/medusa-config#http)
Learn more about these configurations in [this documentation](/references/medusa-config#http).