Skip to content

Commit

Permalink
fix: fix runtimeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Sep 27, 2024
1 parent 5dd564a commit fa6677d
Show file tree
Hide file tree
Showing 12 changed files with 16,688 additions and 15,502 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20",
"updateContentCommand": "yarn --frozen-lockfile"
"updateContentCommand": "pnpm install --frozen-lockfile"
}
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: corepack enable
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- run: yarn checkUnknownFiles
- run: yarn lint
- run: pnpm install --frozen-lockfile
- run: pnpm checkUnknownFiles
- run: pnpm lint
- env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Push changed files
run: yarn dw-ci push-changed-files
run: pnpm dw-ci push-changed-files
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: github.ref == 'refs/heads/master'
name: Release
run: yarn semantic-release
run: pnpm semantic-release
test:
needs: cancel-existing
runs-on: ${{ matrix.os }}
Expand All @@ -45,10 +46,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
- run: corepack enable
- run: pnpm install --frozen-lockfile
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn test
run: pnpm test
- if: failure()
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 0 additions & 2 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ RUN git lfs install
RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install 20'
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix

RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc

RUN yarn global add gitpod-env-per-project @babel/node @babel/core

RUN sudo apt-get install -y graphviz
Expand Down
11 changes: 8 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,24 @@ image:
file: .gitpod.Dockerfile
tasks:
- before: >-
echo "corepack enable" >> /home/gitpod/.bashrc
echo "export COREPACK_ENABLE_DOWNLOAD_PROMPT=0" >> /home/gitpod/.bashrc
gitpod-env-per-project >> /home/gitpod/.bashrc
echo "export
PUPPETEER_CACHE_DIR=/workspace/nuxt-mail/node_modules/.cache/puppeteer" >>
/home/gitpod/.bashrc
echo "export PLAYWRIGHT_BROWSERS_PATH=0" >> /home/gitpod/.bashrc
gitpod-env-per-project >> /home/gitpod/.bashrc && source
/home/gitpod/.bashrc
source /home/gitpod/.bashrc
init: |-
git config --global user.name "Sebastian Landwehr"
git config diff.lfs.textconv cat
git lfs pull
yarn --frozen-lockfile
pnpm install --frozen-lockfile
vscode:
extensions:
- https://sebastianlandwehr.com/vscode-extensions/karlito40.fix-irregular-whitespace-0.1.1.vsix
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"coverage": true,
"dist": true,
"node_modules": true,
"yarn.lock": true
"pnpm-lock.yaml": true
},
"workbench.editor.enablePreview": false
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ export default {
port: 587,
},
},
// or use runtimeConfig
runtimeConfig: {
mail: {
message: {
to: '[email protected]',
},
smtp: {
host: "smtp.example.com",
port: 587,
},
},
},
}
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@
"execa": "^8.0.1",
"nuxt": "^3.3.3",
"nuxt-dev-ready": "^3.0.0",
"ora": "^8.0.1",
"output-files": "^2.0.19",
"port-ready": "^0.1.0",
"smtp-tester": "^2.0.1",
"tree-kill-promise": "^3.0.9",
"with-local-tmp-dir": "^5.0.0"
},
"packageManager": "[email protected]+sha256.1c0e33f70e5df9eede84a357bdfa0b1f9dba6e58194628d48a1055756f553754",
"engines": {
"node": ">=18"
},
Expand Down
Loading

0 comments on commit fa6677d

Please sign in to comment.