hyperspan 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRoute } from '@hyperspan/framework';
|
|
2
2
|
import { html } from '@hyperspan/html';
|
|
3
|
-
import { z } from 'zod
|
|
3
|
+
import { z } from 'zod';
|
|
4
4
|
import { validateBody } from '@hyperspan/framework/middleware/zod';
|
|
5
5
|
|
|
6
6
|
export default createRoute().get(async (c) => {
|
package/package.json
CHANGED
package/src/commands.ts
CHANGED
|
@@ -49,7 +49,10 @@ program
|
|
|
49
49
|
// Developer mode (extra logging, etc.)
|
|
50
50
|
if (IS_DEV_MODE) {
|
|
51
51
|
console.log('[Hyperspan] Developer mode enabled 🛠️');
|
|
52
|
-
process.env.NODE_ENV
|
|
52
|
+
const nodeEnv = process.env.NODE_ENV;
|
|
53
|
+
if (!nodeEnv || nodeEnv === 'production') {
|
|
54
|
+
process.env.NODE_ENV = 'development';
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
// Ensure we are in a hyperspan project
|