Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer c5fa385a7d
fix: only enable SSL in development mode 2023-10-31 01:30:15 -04:00
Derrick Hammer 2eabb7926c
refactor: change project name 2023-10-31 01:27:16 -04:00
3 changed files with 29 additions and 29 deletions

View File

@ -1,30 +1,30 @@
import { defineConfig } from "astro/config"
import * as fs from "node:fs"
import { defineConfig } from 'astro/config'
import * as fs from 'node:fs'
import react from "@astrojs/react"
import tailwind from "@astrojs/tailwind"
import optimizer from "vite-plugin-optimizer"
import react from '@astrojs/react'
import tailwind from '@astrojs/tailwind'
import optimizer from 'vite-plugin-optimizer'
export default defineConfig({
integrations: [react(), tailwind({ applyBaseStyles: false })],
vite: {
server: {
https: {
cert: fs.readFileSync("./.local-ssl/localhost.pem"),
key: fs.readFileSync("./.local-ssl/localhost-key.pem")
},
},
build: {
minify: false
},
resolve: {
dedupe: ["@lumeweb/libportal", "@lumeweb/libweb", "@lumeweb/libkernel"]
},
plugins: [
optimizer({
"node-fetch":
"const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};"
})
]
}
integrations: [react(), tailwind({ applyBaseStyles: false })],
vite: {
server: process.env.MODE === 'development' ? {
https: {
cert: fs.readFileSync('./.local-ssl/localhost.pem'),
key: fs.readFileSync('./.local-ssl/localhost-key.pem')
},
} : {},
build: {
minify: false
},
resolve: {
dedupe: ['@lumeweb/libportal', '@lumeweb/libweb', '@lumeweb/libkernel']
},
plugins: [
optimizer({
'node-fetch':
'const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};'
})
]
}
})

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "opposite-osiris",
"name": "@lumeweb/web3toybox.com",
"version": "0.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "opposite-osiris",
"name": "@lumeweb/web3toybox.com",
"version": "0.0.1",
"dependencies": {
"@astrojs/react": "^3.0.3",

View File

@ -1,5 +1,5 @@
{
"name": "opposite-osiris",
"name": "@lumeweb/web3toybox.com",
"type": "module",
"version": "0.0.1",
"scripts": {