From dec54464fb286a21e92e47d0f104f275870458de Mon Sep 17 00:00:00 2001 From: Quinta <0pietroquintavalle0@gmail.com> Date: Thu, 22 Aug 2024 03:24:50 +0200 Subject: [PATCH] lets try again again --- .github/workflows/nextjs.yml | 10 ++++++++-- app/info/page.tsx | 12 ++++++------ next-sitemap.config.js | 4 ++++ next.config.js | 6 ++++-- package.json | 4 +++- 5 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 next-sitemap.config.js diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index c853ed8..1c07e08 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -70,7 +70,13 @@ jobs: - name: Build with Next.js env: GITHUB_PAGES: true - run: ${{ steps.detect-package-manager.outputs.runner }} next build + run: | + ${{ steps.detect-package-manager.outputs.runner }} next build + ${{ steps.detect-package-manager.outputs.runner }} next export + - name: Generate sitemap + run: | + npm install next-sitemap + npx next-sitemap - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: @@ -85,4 +91,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/app/info/page.tsx b/app/info/page.tsx index 103de9f..b5c2345 100644 --- a/app/info/page.tsx +++ b/app/info/page.tsx @@ -13,17 +13,17 @@ export default function InfoPage() {
- router.back()} - className="mr-4 cursor-pointer text-gray-500 hover:bg-gray-200 rounded-full transition-colors duration-200" - size={24} - /> + + +

No Man's Sky Portal Address Tool - Information

What is this tool?

-

This tool helps No Man's Sky players generate, translate, and share portal addresses. It consists of three main features:

+

This tool helps No Man's Sky players generate, translate, and share portal + addresses. It consists of three main features:

  • Generator: Create random portal addresses or input your own.
  • Translator: Convert between hexadecimal addresses and glyph symbols.
  • diff --git a/next-sitemap.config.js b/next-sitemap.config.js new file mode 100644 index 0000000..21a7ccc --- /dev/null +++ b/next-sitemap.config.js @@ -0,0 +1,4 @@ +module.exports = { + siteUrl: process.env.SITE_URL, + generateRobotsTxt: true, +} \ No newline at end of file diff --git a/next.config.js b/next.config.js index f20d115..ab71719 100644 --- a/next.config.js +++ b/next.config.js @@ -2,12 +2,14 @@ const nextConfig = { reactStrictMode: true, images: { - domains: ['nmsportal-9ac18.firebaseapp.com'], + loader: 'akamai', + path: '', unoptimized: true, }, output: 'export', basePath: process.env.GITHUB_ACTIONS ? '/nmsportal' : '', assetPrefix: process.env.GITHUB_ACTIONS ? '/nmsportal/' : '', + trailingSlash: true, webpack: (config, { isServer }) => { if (!isServer) { config.resolve.fallback = { @@ -28,4 +30,4 @@ const nextConfig = { }, } -module.exports = nextConfig; +module.exports = nextConfig; \ No newline at end of file diff --git a/package.json b/package.json index 483208f..6e42f67 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "export": "next export", + "postbuild": "next-sitemap" }, "dependencies": { "@radix-ui/react-dialog": "^1.1.1",