Skip to content

Commit

Permalink
deploy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grandmotivator committed Jul 1, 2024
1 parent 86efdc5 commit 575fa84
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
Empty file added .nojekyll
Empty file.
20 changes: 18 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
const isGithubActions = process.env.GITHUB_ACTIONS || false;

let assetPrefix = "";
let basePath = "";

if (isGithubActions) {
const repo = process.env.GITHUB_REPOSITORY.replace(/.*?\//, "");

assetPrefix = `/${repo}/`;
basePath = `/${repo}`;
}

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
assetPrefix,
basePath,
output: "export", // Ensure this line is present
};

export default nextConfig;
module.exports = nextConfig;
27 changes: 27 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 575fa84

Please sign in to comment.