mirror of
https://github.com/supabase/supabase.git
synced 2026-05-26 21:53:19 +08:00
Partials are currently defined via MDX includes. This PR switches to pre-compile-time partials, which have a new syntax: ``` <$Partial path="path/to/file.mdx" /> ``` ## Rationale This produces two improvements: 1. Partial substitution can occur in pipelines that don't use MDX compilation. For example, we can now do partial substitution before building the search index, so partial content will also be indexed. 2. After the App Router migration, the MDXProviders should've been deprecated, but were kept around for the sole reason of making partials work, and leading to us shipping unnecessary client-side code. We get a minor decrease in overall client bundle size (5.74 MB to 5.6 MB) by getting rid of the Providers. ## Breaking changes Besides the change to partial syntax, the arguments are also less powerful than before because we are doing string substitution and don't have the full power of JS. Defining string variables is still possible (documented in the Contributing guide), and since that's all we actually do in practice, this shouldn't be too cumbersome. There is always the escape hatch of making a custom component for more complex content reuse cases.
129 lines
2.9 KiB
Plaintext
129 lines
2.9 KiB
Plaintext
<Tabs
|
|
scrollable
|
|
size="small"
|
|
type="underlined"
|
|
defaultActiveId="windows"
|
|
>
|
|
|
|
<TabPanel id="windows" label="Windows">
|
|
|
|
<StepHikeCompact>
|
|
|
|
<StepHikeCompact.Step step={1}>
|
|
|
|
<StepHikeCompact.Details title="Install Postgres" fullWidth>
|
|
|
|
Download and run the installation file for the latest version from the [Postgres installer download page](https://www.postgresql.org/download/windows/).
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
<StepHikeCompact.Step step={2}>
|
|
|
|
<StepHikeCompact.Details title="Add Postgres to your system PATH" fullWidth>
|
|
|
|
Add the Postgres binary to your system PATH.
|
|
|
|
In Control Panel, under the Advanced tab of System Properties, click Environment Variables. Edit the Path variable by adding the path the SQL binary you just installed.
|
|
|
|
The path will look something like this, though it may differ slightly depending on your installed version:
|
|
|
|
```
|
|
C:\Program Files\PostgreSQL\17\bin
|
|
```
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
<StepHikeCompact.Step step={3}>
|
|
|
|
<StepHikeCompact.Details title="Verify that psql is working" fullWidth>
|
|
|
|
Open your terminal and run the following command:
|
|
|
|
```sh
|
|
psql --version
|
|
```
|
|
|
|
<Admonition type="tip">
|
|
|
|
If you get an error that psql is not available or cannot be found, check that you have correctly added the binary to your system PATH. Also try restarting your terminal.
|
|
|
|
</Admonition>
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
</StepHikeCompact>
|
|
|
|
</TabPanel>
|
|
|
|
<TabPanel id="mac" label="MacOS">
|
|
|
|
<StepHikeCompact>
|
|
|
|
<StepHikeCompact.Step step={1}>
|
|
|
|
<StepHikeCompact.Details title="Install Homebrew" fullWidth>
|
|
|
|
Install [Homebrew](https://brew.sh/).
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
<StepHikeCompact.Step step={2}>
|
|
|
|
<StepHikeCompact.Details title="Install Postgres" fullWidth>
|
|
|
|
Install Postgres via Homebrew by running the following command in your terminal:
|
|
|
|
```sh
|
|
brew install postgresql@17
|
|
```
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
<StepHikeCompact.Step step={3}>
|
|
|
|
<StepHikeCompact.Details title="Verify that psql is working" fullWidth>
|
|
|
|
Restart your terminal and run the following command:
|
|
|
|
```sh
|
|
psql --version
|
|
```
|
|
|
|
If you get an error that psql is not available or cannot be found then the PATH variable is likely either not correctly set or you need to restart your terminal.
|
|
|
|
You can add the Postgres installation path to your PATH variable by running the following command:
|
|
|
|
```sh
|
|
brew info postgresql@17
|
|
```
|
|
|
|
The above command will give an output like this:
|
|
|
|
```sh
|
|
If you need to have postgresql@17 first in your PATH, run:
|
|
|
|
echo 'export PATH="/opt/homebrew/opt/postgresql@17/bin:$PATH"' >> ~/.zshrc
|
|
```
|
|
|
|
Run the command mentioned and restart the terminal.
|
|
|
|
</StepHikeCompact.Details>
|
|
|
|
</StepHikeCompact.Step>
|
|
|
|
</StepHikeCompact>
|
|
|
|
</TabPanel>
|
|
|
|
</Tabs>
|