Skip to content

Commit

Permalink
Merge pull request #14 from zentered/fix/vite-env-variables
Browse files Browse the repository at this point in the history
fix: use import.meta.env instead of process.env for VITE_ variables
  • Loading branch information
PatrickHeneise committed Mar 29, 2023
2 parents 8c2fb42 + 70068a5 commit a62e61c
Show file tree
Hide file tree
Showing 10 changed files with 376 additions and 362 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"eslint:recommended",
"prettier",
"plugin:solid/recommended",
"plugin:markdown/recommended",
"plugin:json/recommended"
"plugin:markdown/recommended"
],
"parserOptions": {
"ecmaFeatures": {
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: '18'
cache: 'pnpm'
- run: pnpm i
- run: pnpm run lint

- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function Root() {
clientId={import.meta.env.VITE_AUTH0_CLIENT_ID}
audience={import.meta.env.VITE_AUTH0_AUDIENCE}
redirectUri={import.meta.env.VITE_AUTH0_REDIRECT_URI}
logoutUrl={`${process.env.VITE_BASE_URL}/auth/logout`}
logoutUrl={`${import.meta.env.VITE_BASE_URL}/auth/logout`}
// organization={organization} // uncomment if you use auth0 organizations
>
<SiteRequiresAuth>
Expand Down
44 changes: 29 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zentered/auth0-solid-start",
"version": "1.0.0",
"version": "0.0.1-dev",
"private": false,
"description": "Auth0 for Solid-Start",
"keywords": [
Expand Down Expand Up @@ -34,40 +34,54 @@
"src"
],
"scripts": {
"lint": "eslint --fix . --ext .js --ext .jsx",
"prepare": "husky install",
"test": "echo \"Error: no test specified\" && exit 1"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{js,md}": [
"prettier --write"
],
"*.{js,jsx}": [
"eslint --cache --fix"
]
},
"release": {
"branches": [
"main"
]
},
"dependencies": {
"auth0-js": "^9.20.1",
"jose": "^4.12.0"
"auth0-js": "^9.20.2",
"jose": "^4.13.1"
},
"devDependencies": {
"@commitlint/cli": "^17.4.3",
"@commitlint/config-conventional": "^17.4.3",
"@solidjs/router": "^0.7.0",
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@solidjs/router": "^0.8.2",
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-json": "^3.1.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-solid": "^0.9.4",
"eslint-plugin-solid": "^0.12.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4",
"solid-js": "^1.6.11",
"solid-start": "^0.2.21"
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"solid-js": "^1.6.16",
"solid-start": "^0.2.24"
},
"peerDependencies": {
"@solidjs/router": "^0.7.0",
"solid-js": "^1.6.11",
"solid-start": "^0.2.21"
},
"engines": {
"node": ">16"
"node": "^18"
}
}
Loading

0 comments on commit a62e61c

Please sign in to comment.