-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
GITHUB_CLIENT_ID="xxx000x0x0x0x0x00xx0" | ||
GITHUB_CLIENT_SECRET="00xx0xx00x0x0xxx00xx00000x000x00x0x00xxx" | ||
SESSION_SECRET="x00x0x00x0x0x0x0000xx" | ||
HOST="https://127.0.0.1" | ||
|
||
# test 127.0.0.1 deploy microwebstacks.github.io | ||
PROTOCOL="https" | ||
HOST="127.0.0.1" | ||
PORT=3000 | ||
USE_HTTPS=true | ||
|
||
CERT_FILE="cert/cert.pem" | ||
KEY_FILE="cert/key.pem" | ||
BASE='astro-big-doc' | ||
OUT_DIR="./temp" | ||
|
||
#optional | ||
SITE='http://microwebstacks.github.io' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
--- | ||
import Layout from "@/layout/Layout.astro"; | ||
import { config } from "@/config"; | ||
const title = "About" | ||
console.log("Hello About") | ||
--- | ||
<Layout title={title}> | ||
<h1>About</h1> | ||
<a>This is 'About' page</a> | ||
</Layout> | ||
|
||
<div id="data-url" style="display: none;" data-url={config.url}></div> | ||
|
||
<script> | ||
if(false){//test forward api | ||
const test_api = await fetch("https://127.0.0.1:3000/api/test") | ||
if(import.meta.env.MODE != "development"){ | ||
console.log("production mode") | ||
const url = document.getElementById("data-url").getAttribute("data-url") | ||
console.log(url) | ||
const test_api = await fetch(`${url}/api/test`) | ||
const data = await test_api.json() | ||
console.log(data) | ||
} | ||
else{ | ||
console.log("development mode") | ||
} | ||
</script> |