Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup GitHub pages but not rly #4

Merged
merged 11 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build/index.html

This file was deleted.

1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<head><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script><script defer="defer" src="main.js"></script></head><body><div id="root"></div></body>
2 changes: 1 addition & 1 deletion build/main.js → docs/main.js

Large diffs are not rendered by default.

File renamed without changes.
6 changes: 0 additions & 6 deletions index.html

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bugs": {
"url": "https://github.com/rseln/BLock-FE/issues"
},
"homepage": "https://github.com/rseln/BLock-FE#readme",
"homepage": "https://rseln.github.com/BLock-FE",
"devDependencies": {
"@auth0/auth0-react": "^2.2.4",
"@babel/core": "^7.22.8",
Expand Down
5 changes: 0 additions & 5 deletions public/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ButtonAppBar({setOpen, open, ...props }) {
const handleLogout = () => {
logout({
logoutParams: {
returnTo: window.location.origin,
returnTo: window.location.origin + "/BLock-FE",
}
})
}
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ module.exports = {
entry: "./src/index.tsx",
output: {
filename: "main.js",
path: path.resolve(__dirname, "build"),
path: path.resolve(__dirname, "docs"),
},
plugins: [
new Dotenv(),
new HtmlWebpackPlugin({
template: path.join(__dirname, "public", "index.html"),
template: path.join(__dirname, "docs", "index.html"),
}),
],
devServer: {
static: {
directory: path.join(__dirname, "build"),
directory: path.join(__dirname, "docs"),
},
port: 3000,
historyApiFallback: true,
Expand All @@ -39,6 +39,6 @@ module.exports = {
strictExportPresence: false,
},
resolve: {
extensions: ["*", ".js", ".jsx", ".ts", ".tsx"],
extensions: [".*", ".js", ".jsx", ".ts", ".tsx"],
},
};