-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JFRA-00: Fix identation, add ignore.
- Loading branch information
Showing
4 changed files
with
57 additions
and
20 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 |
---|---|---|
|
@@ -22,3 +22,6 @@ pnpm-debug.log* | |
|
||
# jetbrains setting folder | ||
.idea/ | ||
|
||
# vscode folder | ||
.vscode/ |
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,4 +1,31 @@ | ||
import { defineConfig } from 'astro/config'; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({}); | ||
const isProd = import.meta.env.PROD; | ||
const isDev = import.meta.env.DEV; | ||
const SERVER_PORT = 8888; | ||
const LOCALHOST_URL = `http://localhost:${SERVER_PORT}/`; | ||
const PROD_URL = 'https://radapls.github.com'; | ||
|
||
let BASE_URL; | ||
if (isProd) | ||
{ | ||
BASE_URL = PROD_URL; | ||
} else if (isDev) | ||
{ | ||
BASE_URL = LOCALHOST_URL; | ||
} | ||
|
||
/** | ||
* This are the current configurations for the project | ||
* More info: https://astro.build/config | ||
*/ | ||
export default defineConfig({ | ||
site: BASE_URL, | ||
server: { | ||
port: SERVER_PORT, | ||
host: true | ||
}, | ||
prefetch: { | ||
prefetchAll: true | ||
} | ||
}); |
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,17 +1,26 @@ | ||
{ | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"plugins": [ | ||
{ | ||
"name": "@astrojs/ts-plugin" | ||
}, | ||
], | ||
"baseUrl": ".", | ||
"paths": { | ||
"@components/*": ["src/components/*"], | ||
"@sections/*": ["src/sections/*"], | ||
"@layouts/*": ["src/layouts/*"], | ||
"@data/*": ["src/data/*"], | ||
} | ||
} | ||
"extends": "astro/tsconfigs/strict", | ||
"compilerOptions": { | ||
"strictPropertyInitialization": false, | ||
"plugins": [ | ||
{ | ||
"name": "@astrojs/ts-plugin" | ||
}, | ||
], | ||
"baseUrl": ".", | ||
"paths": { | ||
"@components/*": [ | ||
"src/components/*" | ||
], | ||
"@sections/*": [ | ||
"src/sections/*" | ||
], | ||
"@layouts/*": [ | ||
"src/layouts/*" | ||
], | ||
"@data/*": [ | ||
"src/data/*" | ||
], | ||
} | ||
} | ||
} |