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
@@ -15,7 +15,7 @@ In this document, youll learn how to deploy the Medusa Admin to [Vercel](http
<Prerequisites items={[
{
text: "Medusa applications codebase hosted on GitHub repository.",
link: "!docs!"
link: "!docs!/learn/installation"
},
{
text: "Deployed Medusa application.",
@@ -31,7 +31,7 @@ The same Medusa project is used to deploy the server and worker modes. Learn mor
<Prerequisites items={[
{
text: "Medusa applications codebase hosted on GitHub repository.",
link: "!docs!"
link: "!docs!/learn/installation"
},
]} />
+1 -1
View File
@@ -30,7 +30,7 @@ Explore Medusa's commerce modules, SDKs, configurations, recipes, and more.
<Note title="Getting started?">
Follow the [Medusa v2 Docs](!docs!) to become an advanced Medusa developer.
Follow the [Medusa Docs](!docs!/learn) to become an advanced Medusa developer.
</Note>
@@ -74,4 +74,4 @@ Our documentation has step-by-step guides to deploy your Medusa application, Med
Along with the extensive ecommerce features, Medusa also provides the architecture and tools to customize and add new features.
To learn how to develop customziations with Medusa, refer to the [Medusa documentation](!docs!)
To learn how to develop customziations with Medusa, refer to the [Medusa documentation](!docs!/learn)
@@ -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).