Skip to content

Commit 20c3429

Browse files
committed
remove files in package.json
1 parent 815540d commit 20c3429

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

core/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

core/package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "t3-env-client",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"engines": {
55
"node": ">=v21"
66
},
@@ -10,14 +10,6 @@
1010
},
1111
"license": "MIT",
1212
"type": "module",
13-
"files": [
14-
"dist",
15-
".next",
16-
"next.config.ts",
17-
"LICENSE",
18-
"package.json",
19-
"README.md"
20-
],
2113
"bin": {
2214
"t3-env-client": "./dist/cli/index.js"
2315
},

core/src/server/start.ts

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export async function startServer({
3939
const currentFileDir = path.dirname(fileURLToPath(currentFileUrl));
4040

4141

42+
consola.log('dev : ' + dev)
4243
consola.log('currentFileUrl : ' + currentFileUrl)
4344
consola.log('currentFileDir : ' + currentFileDir)
4445

@@ -81,27 +82,27 @@ export async function startServer({
8182
try {
8283
const parsedUrl = parse(req.url!, true);
8384

84-
if (parsedUrl.pathname === "/api/env") {
85-
// Get both config and variables data
86-
const envConfigData = await getEnvConfigData(relativePathDir);
87-
const envVariablesData = await getEnvVariablesData(relativePathDir);
88-
89-
// Combine for backward compatibility (if needed by any external consumers)
90-
const combinedData = {
91-
envConfigData,
92-
envVariablesData,
93-
// Legacy format for backward compatibility
94-
projectPath: envConfigData.projectPath,
95-
envClientConfig: envConfigData.envClientConfig,
96-
files: envVariablesData.files,
97-
variables: envVariablesData.variables,
98-
processEnv: envVariablesData.processEnv,
99-
};
100-
101-
res.writeHead(200, { "Content-Type": "application/json" });
102-
res.end(JSON.stringify(combinedData));
103-
return;
104-
}
85+
// if (parsedUrl.pathname === "/api/env") {
86+
// // Get both config and variables data
87+
// const envConfigData = await getEnvConfigData(relativePathDir);
88+
// const envVariablesData = await getEnvVariablesData(relativePathDir);
89+
90+
// // Combine for backward compatibility (if needed by any external consumers)
91+
// const combinedData = {
92+
// envConfigData,
93+
// envVariablesData,
94+
// // Legacy format for backward compatibility
95+
// projectPath: envConfigData.projectPath,
96+
// envClientConfig: envConfigData.envClientConfig,
97+
// files: envVariablesData.files,
98+
// variables: envVariablesData.variables,
99+
// processEnv: envVariablesData.processEnv,
100+
// };
101+
102+
// res.writeHead(200, { "Content-Type": "application/json" });
103+
// res.end(JSON.stringify(combinedData));
104+
// return;
105+
// }
105106

106107
await handle(req, res, parsedUrl);
107108
} catch (err) {

0 commit comments

Comments
 (0)