mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 15:11:37 +03:00
5e4a7cf01c
* feat: Stripe billing support Squashed commit of the following: commit b7ab361d2e2a3b11819ee0c964dd25dde2850eac Author: Nikita Pekin <nikita@frecency.com> Date: Wed Jan 10 04:14:14 2024 -0500 fixes commit 2b7f525be95d8d9e50dea9c5f31828dc2c823eae Merge: 717fba94a1942e6c2305
Author: Nikita Pekin <nikita@frecency.com> Date: Mon Jan 8 08:54:15 2024 -0500 Merge branch 'develop' into wip/np/payment-page-2 commit 717fba94a1b900318ae7d32664b1cb292cb47364 Author: Nikita Pekin <nikita@frecency.com> Date: Mon Jan 8 08:32:38 2024 -0500 fix commit 66a278effddfe57d326acfe93b9fd6ce9f849a65 Author: Nikita Pekin <nikita@frecency.com> Date: Mon Jan 8 06:10:37 2024 -0500 rename endpoints commit 05ca2276d796d5431a19623f18d97503d730746c Author: Nikita Pekin <nikita@frecency.com> Date: Thu Jan 4 03:13:07 2024 -0500 update for new API commit ecc65a4b3bbf8167c91eb9cc9a71f05367ee41f6 Author: Nikita Pekin <nikita@frecency.com> Date: Tue Jan 2 09:02:23 2024 -0500 make subscribe appear in app commit 048883e343cc42ba75e2e1ebbfa50b9d3033255c Author: Nikita Pekin <nikita@frecency.com> Date: Mon Jan 1 05:13:04 2024 -0500 unify pricename and price commit 5439299eaa01732bcee3204c72987845a569029b Author: Nikita Pekin <nikita@frecency.com> Date: Sun Dec 31 22:57:52 2023 -0500 rename checkout sessions endpoint commit 67537302f9183918272324723b34e26659d10dbe Author: Nikita Pekin <nikita@frecency.com> Date: Sun Dec 31 22:57:44 2023 -0500 fix session ID commit 637968331bf3d2c10b9c6130ae994529b9606fdd Author: Nikita Pekin <nikita@frecency.com> Date: Sun Dec 31 19:59:29 2023 -0500 fix stripe JS commit 051a01e1988f62931e2b7f3f436b6490a09602e0 Author: Nikita Pekin <nikita@frecency.com> Date: Sat Dec 30 23:32:41 2023 -0500 tmp: add AWS profile and refactor commit 9f4199b22dfc5565bea737e31f8d379e098712a7 Author: somebody1234 <ehern.lee@gmail.com> Date: Sat Nov 4 04:49:29 2023 +1000 Fix `ALL_PATHS_REGEX` commit 4b53bcf7f82fe30c21db013d01dae58e20afb605 Author: somebody1234 <ehern.lee@gmail.com> Date: Mon Dec 18 17:15:33 2023 +1000 Expose `unauthenticatedBackend` from backend context commit 8d554ac16747392c9cd5d10a2c3ad6d79afb7268 Author: somebody1234 <ehern.lee@gmail.com> Date: Mon Dec 18 17:12:17 2023 +1000 Add methods for making HTTP requests to unauthenticated backend commit 2010890cbd38bff31b18e0847ea22a5b71f926d1 Author: somebody1234 <ehern.lee@gmail.com> Date: Mon Dec 18 17:04:49 2023 +1000 Add unauthenticated backend commit 04ac84533bee493194e32129f934ccd9c1df78d6 Merge: 1fa45bc73cd4714af826
Author: somebody1234 <ehern.lee@gmail.com> Date: Mon Dec 18 16:26:27 2023 +1000 Merge branch 'develop' into wip/np/payment-page-2 commit 1fa45bc73cbbf50e53c6f3273559210e85b66c7e Author: Nikita Pekin <nikita@frecency.com> Date: Sun Nov 12 07:01:45 2023 +0000 tmp: Complete checkoutSession flow commit 30ec2792256db5b2b448119b07213b79e3f8a3c5 Author: somebody1234 <ehern.lee@gmail.com> Date: Wed Nov 1 19:20:15 2023 +1000 Initial Stripe integration * revert requestedPlan changes * switch to path from query * Prettier * Fix type error * Switch environment back to production * Fix errors * Fix dev server by removing COOP/COEP/CORP on the dev server specifically * Redirect after upgrading plan is successful * Fix errors; fix initial size of Subscribe page --------- Co-authored-by: somebody1234 <ehern.lee@gmail.com>
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
/** @file Configuration for vite. */
|
|
import * as url from 'node:url'
|
|
|
|
import vitePluginYaml from '@modyfi/vite-plugin-yaml'
|
|
import vitePluginReact from '@vitejs/plugin-react'
|
|
import * as vite from 'vite'
|
|
|
|
// =================
|
|
// === Constants ===
|
|
// =================
|
|
|
|
const SERVER_PORT = 8080
|
|
|
|
// =====================
|
|
// === Configuration ===
|
|
// =====================
|
|
|
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
|
|
export default vite.defineConfig({
|
|
server: { port: SERVER_PORT },
|
|
plugins: [
|
|
vitePluginReact({
|
|
include: '**/*.tsx',
|
|
babel: {
|
|
plugins: ['@babel/plugin-syntax-import-assertions'],
|
|
},
|
|
}),
|
|
vitePluginYaml(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'#': url.fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: url.fileURLToPath(new URL('./index.html', import.meta.url)),
|
|
'404': url.fileURLToPath(new URL('./404.html', import.meta.url)),
|
|
},
|
|
},
|
|
},
|
|
define: {
|
|
IS_VITE: JSON.stringify(true),
|
|
REDIRECT_OVERRIDE: JSON.stringify(`http://localhost:${SERVER_PORT}`),
|
|
CLOUD_ENV:
|
|
process.env.ENSO_CLOUD_ENV != null ? JSON.stringify(process.env.ENSO_CLOUD_ENV) : 'undefined',
|
|
// Single hardcoded usage of `global` in by aws-amplify.
|
|
'global.TYPED_ARRAY_SUPPORT': JSON.stringify(true),
|
|
},
|
|
})
|