Skip to content

Commit

Permalink
lets try again again
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinta0 committed Aug 22, 2024
1 parent 50071b3 commit dec5446
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -85,4 +91,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
12 changes: 6 additions & 6 deletions app/info/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ export default function InfoPage() {
<Header />
<main className="flex-grow container mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div className="flex items-center mb-6">
<ChevronsLeft
onClick={() => router.back()}
className="mr-4 cursor-pointer text-gray-500 hover:bg-gray-200 rounded-full transition-colors duration-200"
size={24}
/>
<Link href="/"
className="mr-4 cursor-pointer text-gray-500 hover:bg-gray-200 rounded-full transition-colors duration-200">
<ChevronsLeft size={24}/>
</Link>
<h1 className="text-2xl sm:text-3xl font-bold">No Man's Sky Portal Address Tool - Information</h1>
</div>

<section className="mb-8">
<h2 className="text-xl sm:text-2xl font-semibold mb-4">What is this tool?</h2>
<p className="mb-2">This tool helps No Man's Sky players generate, translate, and share portal addresses. It consists of three main features:</p>
<p className="mb-2">This tool helps No Man's Sky players generate, translate, and share portal
addresses. It consists of three main features:</p>
<ul className="list-disc pl-5">
<li><strong>Generator:</strong> Create random portal addresses or input your own.</li>
<li><strong>Translator:</strong> Convert between hexadecimal addresses and glyph symbols.</li>
Expand Down
4 changes: 4 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
siteUrl: process.env.SITE_URL,
generateRobotsTxt: true,
}
6 changes: 4 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -28,4 +30,4 @@ const nextConfig = {
},
}

module.exports = nextConfig;
module.exports = nextConfig;
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dec5446

Please sign in to comment.