added next config to build #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | ||
on: push | ||
jobs: | ||
build: | ||
name: build-docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v1 | ||
- run: bun i next@^13.0.6 nextra@2.13.4 nextra-theme-docs@2.13.4 react@^18.2.0 react-dom@^18.2.0 | ||
- run: bunx create-next-app docs_site --v 13.0.6 --ts --no-tailwind --no-eslint --no-app --no-src-dir --no-import-alias --empty --use-bun | ||
- run: "echo 'Bun.write(`./next.config.js`, `const withNextra = require("nextra")({ output: \"build\" }); module.exports = withNextra()`)' | bun run -" | ||
- run: cd docs_site && bun run build && cd ../ |