docs: improve getting started chapters (#10014)
This commit is contained in:
@@ -4,19 +4,19 @@ You might see a log in your browser console, that looks like this:
|
||||
|
||||

|
||||
|
||||
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).
|
||||
|
||||
Reference in New Issue
Block a user