Skip to content

Commit

Permalink
add public site url
Browse files Browse the repository at this point in the history
  • Loading branch information
gvkhna committed Feb 3, 2024
1 parent 515678c commit 07a7149
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 379 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
PUBLIC_SITE_URL=http://localhost:4321
# In production:
# PUBLIC_SITE_URL=https://gvkhna.github.io

PUBLIC_DEBUG=true
DEBUG=app:*

Expand Down
8 changes: 4 additions & 4 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ dotenv.config()
import {defineConfig} from 'astro/config'
import tailwind from '@astrojs/tailwind'
import react from '@astrojs/react'
import node from '@astrojs/node'

const PUBLIC_SITE_URL = process.env.PUBLIC_SITE_URL

export default defineConfig({
site: PUBLIC_SITE_URL,
base: '/cable-tag-maker',
build: {
inlineStylesheets: 'auto'
},
output: 'static',
devToolbar: {
enabled: false
},
// adapter: node({
// mode: 'standalone'
// }),
srcDir: './src/',
publicDir: './public/',
compressHTML: true,
Expand Down
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"build": "astro build"
},
"dependencies": {
"@astrojs/node": "^8.2.0",
"@astrojs/react": "^3.0.9",
"@astrojs/tailwind": "^5.1.0",
"@headlessui/react": "^1.7.18",
Expand All @@ -40,11 +39,6 @@
"devDependencies": {
"@types/node": "^20.11.16",
"debug": "^4.3.4",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.0.0",
"postcss-nesting": "^12.0.2",
"postcss-url": "^10.1.3",
"postcss": "^8.4.33",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-tailwindcss": "^0.5.11",
"prettier": "^3.2.4",
Expand Down
Loading

0 comments on commit 07a7149

Please sign in to comment.