maverick-ai-cli 2.0.0 → 3.0.0
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/index.js +2 -4
package/README.md
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import "dotenv/config";
|
|
1
2
|
import express from "express";
|
|
2
|
-
import dotenv from "dotenv";
|
|
3
3
|
import { toNodeHandler, fromNodeHeaders } from "better-auth/node";
|
|
4
4
|
import cors from "cors";
|
|
5
5
|
import { auth } from "./lib/auth.js"
|
|
6
6
|
|
|
7
|
-
dotenv.config()
|
|
8
|
-
|
|
9
7
|
const app = express()
|
|
10
8
|
|
|
11
9
|
app.set('trust proxy', true);
|
|
@@ -19,7 +17,7 @@ app.use(
|
|
|
19
17
|
})
|
|
20
18
|
);
|
|
21
19
|
|
|
22
|
-
app.options("*", cors()); // Handle preflight requests explicitly
|
|
20
|
+
app.options("/{*splat}", cors()); // Handle preflight requests explicitly
|
|
23
21
|
|
|
24
22
|
app.all("/api/auth/*splat", toNodeHandler(auth))
|
|
25
23
|
|