mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
feat(env): temporary revert frontend implementation (#609)
This commit is contained in:
committed by
GitHub
parent
caf1a58a0b
commit
3063763667
@@ -11,6 +11,3 @@ node_modules
|
||||
.tuono
|
||||
out
|
||||
target
|
||||
|
||||
# Ignore local env files
|
||||
*.local
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"types": ["tuono/build-client"],
|
||||
|
||||
// Interop Constraints
|
||||
"isolatedModules": true,
|
||||
|
||||
@@ -11,6 +11,3 @@ node_modules
|
||||
.tuono
|
||||
out
|
||||
target
|
||||
|
||||
# Ignore local env files
|
||||
*.local
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
declare module '*.module.css' {
|
||||
const classes: Record<string, string>
|
||||
export default classes
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"types": ["tuono/build-client"],
|
||||
|
||||
// Interop Constraints
|
||||
"isolatedModules": true,
|
||||
|
||||
@@ -11,6 +11,3 @@ node_modules
|
||||
.tuono
|
||||
out
|
||||
target
|
||||
|
||||
# Ignore local env files
|
||||
*.local
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"types": ["tuono/build-client"],
|
||||
|
||||
// Interop Constraints
|
||||
"isolatedModules": true,
|
||||
|
||||
@@ -11,6 +11,3 @@ node_modules
|
||||
.tuono
|
||||
out
|
||||
target
|
||||
|
||||
# Ignore local env files
|
||||
*.local
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"types": ["tuono/build-client"],
|
||||
|
||||
// Interop Constraints
|
||||
"isolatedModules": true,
|
||||
|
||||
@@ -27,9 +27,6 @@
|
||||
"types": "./dist/esm/build/index.d.ts",
|
||||
"default": "./dist/esm/build/index.js"
|
||||
},
|
||||
"./build-client": {
|
||||
"types": "./dist/esm/build-client/index.d.ts"
|
||||
},
|
||||
"./config": {
|
||||
"types": "./dist/esm/config/index.d.ts",
|
||||
"default": "./dist/esm/config/index.js"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
import 'vite/client'
|
||||
@@ -2,4 +2,3 @@ export const DOT_TUONO_FOLDER_NAME = '.tuono'
|
||||
export const CONFIG_FOLDER_NAME = 'config'
|
||||
export const CONFIG_FILE_NAME = 'config.mjs'
|
||||
export const SERVER_CONFIG_NAME = 'config.json'
|
||||
export const ENV_PREFIX = 'TUONO_PUBLIC_'
|
||||
|
||||
@@ -8,7 +8,6 @@ import type { TuonoConfig } from '../config'
|
||||
|
||||
import { blockingAsync } from './utils'
|
||||
import { createJsonConfig, loadConfig } from './config'
|
||||
import { ENV_PREFIX } from './constants'
|
||||
|
||||
const VITE_SSR_PLUGINS: Array<Plugin> = [
|
||||
{
|
||||
@@ -46,7 +45,6 @@ function createBaseViteConfigFromTuonoConfig(
|
||||
publicDir: '../public',
|
||||
cacheDir: 'cache',
|
||||
envDir: '../',
|
||||
envPrefix: ENV_PREFIX,
|
||||
|
||||
resolve: {
|
||||
alias: tuonoConfig.vite?.alias ?? {},
|
||||
|
||||
@@ -13,7 +13,6 @@ export default mergeConfig(
|
||||
'./src/index.ts',
|
||||
'./src/build/index.ts',
|
||||
'./src/config/index.ts',
|
||||
'./src/build-client/index.ts',
|
||||
'./src/ssr/index.ts',
|
||||
'./src/hydration/index.tsx',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user