Skip to content

Commit

Permalink
Merge pull request #6 from Opetushallitus/error-handling
Browse files Browse the repository at this point in the history
Virheidenkäsittelyä  & saavutettavuuskorjauksia
  • Loading branch information
SalamaGofore authored Apr 30, 2024
2 parents 9921f8f + b191fa2 commit 4bfc70e
Show file tree
Hide file tree
Showing 30 changed files with 770 additions and 234 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": ["next/core-web-vitals", "prettier"]
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true
}
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
run: |
npm run typecheck
npm run lint
test:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion dev-server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ const basePath = nextConfig.basePath;
const port = parseInt(process.env.PORT, 10) || 3404;

const virkailijaOrigin = process.env.VIRKAILIJA_URL;
const isProd = process.env.NODE_ENV === 'production';

const app = next({
conf: nextConfig,
dev: true,
dev: !isProd,
hostname: 'localhost',
port: port,
env: process.env,
Expand Down
Loading

0 comments on commit 4bfc70e

Please sign in to comment.