Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
remove fly & add vercel back
Sara Vieira75a62a7bd661
diff --git a/.dockerignore b/.dockerignoredeleted file mode 100644index 709870d923..0000000000--- a/.dockerignore+++ /dev/null@@ -1,7 +0,0 @@-/node_modules-*.log-.DS_Store-.env-/.cache-/public/build-/build\ No newline at end of filediff --git a/Dockerfile b/Dockerfiledeleted file mode 100644index a2d255542f..0000000000--- a/Dockerfile+++ /dev/null@@ -1,56 +0,0 @@-# base node image-FROM node:16-bullseye-slim as base--# set for base and all layer that inherit from it-ENV NODE_ENV production--# Install openssl for Prisma-RUN apt-get update && apt-get install -y openssl sqlite3--# Install all node_modules, including dev dependencies-FROM base as deps--WORKDIR /myapp--ADD package.json yarn.lock ./-RUN yarn --production=false--# Setup production node_modules-FROM base as production-deps--WORKDIR /myapp--COPY --from=deps /myapp/node_modules /myapp/node_modules-ADD package.json yarn.lock ./--# Build the app-FROM base as build--WORKDIR /myapp--COPY --from=deps /myapp/node_modules /myapp/node_modules--ADD prisma .-ADD . .-RUN yarn build--# Finally, build the production image with minimal footprint-FROM base--ENV DATABASE_URL=file:/data/sqlite.db-ENV PORT="8080"-ENV NODE_ENV="production"--# add shortcut for connecting to database CLI-RUN echo "#!/bin/sh\nset -x\nsqlite3 \$DATABASE_URL" > /usr/local/bin/database-cli && chmod +x /usr/local/bin/database-cli--WORKDIR /myapp--COPY --from=production-deps /myapp/node_modules /myapp/node_modules---COPY --from=build /myapp/build /myapp/build-COPY --from=build /myapp/public /myapp/public-ADD . .--CMD ["npm", "start"]\ No newline at end of filediff --git a/api/index.js b/api/index.jsnew file mode 100644index 0000000000..fe9a2e84d2--- /dev/null+++ b/api/index.js@@ -0,0 +1,5 @@+const { createRequestHandler } = require("@remix-run/vercel");++module.exports = createRequestHandler({+ build: require("./_build"),+});diff --git a/fly.sh b/fly.shdeleted file mode 100644index 4e63c08457..0000000000--- a/fly.sh+++ /dev/null@@ -1,10 +0,0 @@-# This file is how Fly starts the server (configured in fly.toml). Before starting-# the server though, we need to run any prisma migrations that haven't yet been-# run, which is why this file exists in the first place.-# Learn more: https://community.fly.io/t/sqlite-not-getting-setup-properly/4386--#!/bin/sh--set -ex-yarn prisma migrate deploy-yarn start\ No newline at end of filediff --git a/fly.toml b/fly.tomldeleted file mode 100644index 737867d907..0000000000--- a/fly.toml+++ /dev/null@@ -1,43 +0,0 @@-# fly.toml file generated for webstudio-dev on 2022-05-21T21:31:32+02:00--app = "webstudio"--kill_signal = "SIGINT"-kill_timeout = 5-processes = []--[experimental]- allowed_public_ports = []- auto_rollback = true- cmd = "fly.sh"- entrypoint = "sh"--[mounts]- destination = "/data"- source = "data"--[[services]]- internal_port = 8080- processes = ["app"]- protocol = "tcp"- script_checks = []-- [services.concurrency]- hard_limit = 25- soft_limit = 20- type = "connections"-- [[services.ports]]- force_https = true- handlers = ["http"]- port = 80-- [[services.ports]]- handlers = ["tls", "http"]- port = 443-- [[services.tcp_checks]]- grace_period = "1s"- interval = "15s"- restart_limit = 0- timeout = "2s"diff --git a/package.json b/package.jsonindex 403ab2c923..0d7025b933 100644--- a/package.json+++ b/package.json@@ -74,6 +74,7 @@},"devDependencies": {"@remix-run/dev": "^1.2.3",+ "@remix-run/vercel": "^1.5.1","@types/css-tree": "^1.0.7","@types/hoist-non-react-statics": "^3.3.1","@types/hyphenate-style-name": "^1.0.0",diff --git a/remix.config.js b/remix.config.jsindex 76c2fd3143..aa3040c9de 100644--- a/remix.config.js+++ b/remix.config.js@@ -2,6 +2,9 @@* @type {import('@remix-run/dev').AppConfig}*/module.exports = {- ignoredRouteFiles: ["**/.*"],- cacheDirectory: "./node_modules/.cache/remix",+ appDirectory: "app",+ assetsBuildDirectory: "public/build",+ publicPath: "/build/",+ serverBuildDirectory: "api/_build",+ ignoredRouteFiles: [".*"],};diff --git a/vercel.json b/vercel.jsonnew file mode 100644index 0000000000..dcfba92eda--- /dev/null+++ b/vercel.json@@ -0,0 +1,7 @@+{+ "build": {+ "env": {+ "ENABLE_FILE_SYSTEM_API": "1"+ }+ }+}diff --git a/yarn.lock b/yarn.lockindex 6f40ae551f..e6eb0a40e4 100644--- a/yarn.lock+++ b/yarn.lock@@ -1366,6 +1366,13 @@set-cookie-parser "^2.4.8"source-map "^0.7.3"+"@remix-run/vercel@^1.5.1":+ version "1.5.1"+ resolved "https://registry.yarnpkg.com/@remix-run/vercel/-/vercel-1.5.1.tgz#24662dcdc208d62d1254d64d873c0f01ba581a99"+ integrity sha512-g8+dTGeeUtt7CclH6/bdB6BRETfo8yIPz2wQUzzerFFUJj82D571rWiGNhOiEydmMUfg9Gjd7PwIbjF1I5FezA==+ dependencies:+ "@remix-run/node" "1.5.1"+"@remix-run/web-blob@^3.0.3", "@remix-run/web-blob@^3.0.4":version "3.0.4"resolved "https://registry.yarnpkg.com/@remix-run/web-blob/-/web-blob-3.0.4.tgz#99c67b9d0fb641bd0c07d267fd218ae5aa4ae5ed"