File tree 3 files changed +12
-3
lines changed 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,8 @@ $ npm run dev
26
26
```
27
27
28
28
Open the browser and go to the URL that is printed in the terminal.
29
+
30
+ ## Releasing an example to https://yorkie.dev
31
+
32
+ To release an example, the example should export static files to ` ./dist ` directory when running ` npm run build ` .
33
+ After the example is merged to the ` main ` branch, it is automatically deployed to https://yorkie.dev/yorkie-js-sdk/examples/{EXAMPLE-NAME} .
Original file line number Diff line number Diff line change 1
1
/** @type {import('next').NextConfig } */
2
- const nextConfig = { }
2
+ const nextConfig = {
3
+ output : 'export' ,
4
+ distDir : 'dist' ,
5
+ basePath : '/yorkie-js-sdk/examples/nextjs-scheduler' ,
6
+ } ;
3
7
4
- module . exports = nextConfig
8
+ module . exports = nextConfig ;
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"dev" : " next dev -p 5173" ,
7
- "build" : " next build" ,
7
+ "build" : " next build && touch ./dist/.nojekyll " ,
8
8
"start" : " next start" ,
9
9
"lint" : " next lint"
10
10
},
You can’t perform that action at this time.
0 commit comments