From 8d72a759f9195d0fe4c803203da32d4517243555 Mon Sep 17 00:00:00 2001 From: guusvanmeerveld <57101832+Guusvanmeerveld@users.noreply.github.com> Date: Sat, 5 Feb 2022 23:50:24 +0100 Subject: [PATCH] Remove next-i18next + renamed GA workflow --- .github/workflows/{build.yml => deploy.yml} | 7 ++++++- next-i18next.config.js | 6 ------ package.json | 1 - src/pages/_app.tsx | 4 +--- 4 files changed, 7 insertions(+), 11 deletions(-) rename .github/workflows/{build.yml => deploy.yml} (92%) delete mode 100644 next-i18next.config.js diff --git a/.github/workflows/build.yml b/.github/workflows/deploy.yml similarity index 92% rename from .github/workflows/build.yml rename to .github/workflows/deploy.yml index 5e9d815..6f19dde 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/deploy.yml @@ -39,12 +39,17 @@ jobs: - name: Export website run: yarn export + env: + GITHUB_USERNAME: ${{ GITHUB_REPOSITORY_OWNER }} + + - name: Create .nojekyll file + run: touch out/.nojekyll - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./out + publish_dir: out docker: needs: check diff --git a/next-i18next.config.js b/next-i18next.config.js deleted file mode 100644 index 106a010..0000000 --- a/next-i18next.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - i18n: { - locales: ['en', 'nl'], - defaultLocale: 'en', - }, -}; diff --git a/package.json b/package.json index 819e399..88ddaf5 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "chalk": "^4.1.2", "milligram": "^1.4.1", "next": "^11.1.2", - "next-i18next": "^8.8.0", "next-themes": "^0.0.15", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index df58c22..57fe9ef 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -2,8 +2,6 @@ import { ThemeProvider } from 'next-themes'; import type { AppProps } from 'next/app'; -import { appWithTranslation } from 'next-i18next'; - import 'milligram'; import '@styles/montserrat.css'; @@ -18,4 +16,4 @@ const App = ({ Component, pageProps }: AppProps): JSX.Element => { ); }; -export default appWithTranslation(App); +export default App;