Skip to content

Commit

Permalink
Merge pull request #53 from Limerio/v1.3.0
Browse files Browse the repository at this point in the history
V1.3.0
  • Loading branch information
Limerio authored Mar 25, 2024
2 parents c2ff8ee + 067aaf8 commit 8826bd4
Show file tree
Hide file tree
Showing 30 changed files with 3,901 additions and 673 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ jobs:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install cross-env
run: npm i -g cross-env
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Test database deployment
run: docker-compose up -d
- name: Seeding
run: cross-env DATABASE_URL=mongodb://localhost:27017/chooseyourplace node scripts/seed.js
- name: Run Playwright tests
run: npm run test:e2e
run: cross-env DATABASE_URL=mongodb://localhost:27017/chooseyourplace npm run test:e2e
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ services:
mongodb:
image: mongo:5.0.25-focal
container_name: database
env_file:
- .env
ports:
- 27017:27017
redis:
image: redis:7.2.4-alpine
container_name: caching
ports:
- 6379:6379
11 changes: 9 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
/** @type {import('next').NextConfig} */
const nextConfig = {

import nextPwa from "next-pwa"

const withPwa = nextPwa({
dest: "public",
disable: process.env.NODE_ENV === "development",
})
const nextConfig = withPwa({
reactStrictMode: true,
i18n: {
locales: ["en", "fr"],
defaultLocale: "en",
},
}
})

export default nextConfig
Loading

0 comments on commit 8826bd4

Please sign in to comment.