on master help sign in
fix config imports, add dev env setup TODOs, change eyre cors approve command
e1fe0c9~sarlev-sarsen
DEVELOPMENT.md+2−1
@@ -34,6 +34,7 @@ it's a good place to get started. On the testnet, it's the address:
34
34
35You can authenticate as it using the following mnemonic:
35You can authenticate as it using the following mnemonic:
36
36
37+TODO: THIS SEED FAILS ON RECOVERY KEY SIGN IN with error: `"code":7979,"data":{}}`
37```
38```
38benefit crew supreme gesture quantum web media hazard theory mercy wing kitten
39benefit crew supreme gesture quantum web media hazard theory mercy wing kitten
39```
40```
@@ -207,7 +208,7 @@ Start a local fake ship from the master branch in the [urbit repo](https://githu
207> :roller|local
208> :roller|local
208> :roller|setkey '58d62eb79797502bc0f66cd3e7a49d00287bff53a2734b799ef09cb746340ed0'
209> :roller|setkey '58d62eb79797502bc0f66cd3e7a49d00287bff53a2734b799ef09cb746340ed0'
209> :roller|quota 9.999
210> :roller|quota 9.999
210−> |cors-approve 'https://127.0.0.1:3000'
211+> |eyre/cors/approve 'https://127.0.0.1:3000'
211:: Once L2 txs have been sent via Bridge, this will manually commit and batch them, avoiding waiting for the timer
212:: Once L2 txs have been sent via Bridge, this will manually commit and batch them, avoiding waiting for the timer
212::
213::
213> :roller|commit
214> :roller|commit
vite.config.ts+8−7
@@ -1,17 +1,18 @@
1import { defineConfig } from 'vite'
1import { defineConfig } from 'vite'
2+import GlobalPolyFill from "@esbuild-plugins/node-globals-polyfill";
3+import nodePolyfills from 'rollup-plugin-node-polyfills';
4+import inject from '@rollup/plugin-inject'
2import react from '@vitejs/plugin-react'
5import react from '@vitejs/plugin-react'
6+import svgr from 'vite-plugin-svgr';
3−import comlink from 'vite-plugin-comlink'
7+import { comlink } from 'vite-plugin-comlink'
8+import { resolve } from 'path';
4import basicSsl from '@vitejs/plugin-basic-ssl'
9import basicSsl from '@vitejs/plugin-basic-ssl'
5−import svgr from 'vite-plugin-svgr'
6−import { nodePolyfills } from 'vite-plugin-node-polyfills'
7−import GlobalPolyFill from '@esbuild-plugins/node-globals-polyfill'
8−import inject from '@rollup/plugin-inject'
9import fs from 'fs'
10import fs from 'fs'
10import path from 'path'
11import path from 'path'
11−import { resolve } from 'path'
12
12
13+// https://vitejs.dev/config/
13export default defineConfig(({ mode }) => {
14export default defineConfig(({ mode }) => {
14− // Try to use mkcert certificates first
15+
15 const certPath = path.resolve(__dirname, 'localhost+2.pem')
16 const certPath = path.resolve(__dirname, 'localhost+2.pem')
16 const keyPath = path.resolve(__dirname, 'localhost+2-key.pem')
17 const keyPath = path.resolve(__dirname, 'localhost+2-key.pem')
17
18