Skip to content

Commit a9325d6

Browse files
committed
Update nextjs-scheduler to export static files (#672)
* Update nextjs-scheduler to export static files * Update examples/README.md
1 parent 5fc5a20 commit a9325d6

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

examples/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ $ npm run dev
2626
```
2727

2828
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}.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/** @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+
};
37

4-
module.exports = nextConfig
8+
module.exports = nextConfig;

examples/nextjs-scheduler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev -p 5173",
7-
"build": "next build",
7+
"build": "next build && touch ./dist/.nojekyll",
88
"start": "next start",
99
"lint": "next lint"
1010
},

0 commit comments

Comments
 (0)