You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/README.md
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,4 +116,73 @@ When you finish developing and testing the plugin, you can publish it into the n
116
116
yarn build --publish
117
117
```
118
118
119
-
You can check a code demo here: [Code Demo on Github](https://github.com/lowcoder-org/lowcoder/tree/main/client/packages/lowcoder-plugin-demo)
119
+
You can check a code demo here: [Code Demo on Github](https://github.com/lowcoder-org/lowcoder/tree/main/client/packages/lowcoder-plugin-demo)
120
+
121
+
# Deployment of the Lowcoder Frontend to Netlify (Local Build Flow)
122
+
123
+
## ⚙️ Prerequisites
124
+
125
+
* Node.js & Yarn installed
126
+
* Netlify CLI installed:
127
+
128
+
```bash
129
+
npm install -g netlify-cli
130
+
```
131
+
132
+
* Netlify CLI authenticated:
133
+
134
+
```bash
135
+
netlify login
136
+
```
137
+
138
+
* The project is linked to the correct Netlify site:
139
+
140
+
```bash
141
+
cd client
142
+
netlify link
143
+
```
144
+
145
+
---
146
+
147
+
## 🛠 Setup `netlify.toml` (only once)
148
+
149
+
Inside the `client/` folder, create or update `netlify.toml`:
150
+
151
+
```toml
152
+
[build]
153
+
base = "client"
154
+
command = "yarn workspace lowcoder build"
155
+
publish = "client/packages/lowcoder/build"
156
+
```
157
+
158
+
This ensures Netlify uses the correct build and publish paths when building locally.
159
+
160
+
---
161
+
162
+
## 🚀 Deployment Steps
163
+
164
+
1️⃣ Navigate into the `client` folder:
165
+
166
+
```bash
167
+
cd client
168
+
```
169
+
170
+
2️⃣ Run local build (with Netlify environment variables injected):
0 commit comments