diff --git a/src/index.js b/api/index.js similarity index 87% rename from src/index.js rename to api/index.js index ab71388..4ffa8e0 100644 --- a/src/index.js +++ b/api/index.js @@ -1,5 +1,5 @@ import express from 'express'; -import { post, get } from './server.js'; +import { post, get } from '../src/server.js'; const app = express(); diff --git a/package.json b/package.json index 1835fd0..6e15f7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deeplx-serverless", - "version": "3.0.0", + "version": "3.0.1", "description": "DeepL free API for Serverless", "type": "module", "main": "server.js", @@ -17,7 +17,6 @@ "node": ">=18" }, "scripts": { - "build:vercel": "mv src/* api/", "start": "node src/server.js", "test": "node test.js", "start:sl": "node src/index.js", diff --git a/vercel.json b/vercel.json index d5f71b3..d828cc4 100644 --- a/vercel.json +++ b/vercel.json @@ -1,12 +1,4 @@ { - "builds": [ - { - "src": "package.json", - "use": "@vercel/node", - "config": { "zeroConfig": false } - } - ], - "outputDirectory": "api", "rewrites": [ { "source": "/(.*)", "destination": "/api/index.js" } ]