Skip to content

Commit

Permalink
Fix deploy memory upload handler js (#231)
Browse files Browse the repository at this point in the history
* trial change

* trial change

* remove PYODIDE_PATH for now.
  • Loading branch information
thadk authored Aug 16, 2024
1 parent fd02144 commit 2741f8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion heat-stack/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LITEFS_DIR="/litefs/data"
DATABASE_PATH="./prisma/data.db"
DATABASE_URL="file:./data.db?connection_limit=1"
CACHE_DATABASE_PATH="./other/cache.db"
PYODIDE_PATH="public/pyodide-env"
# PYODIDE_PATH="public/pyodide-env"
SESSION_SECRET="super-duper-s3cret"
HONEYPOT_SECRET="super-duper-s3cret"
INTERNAL_COMMAND_TOKEN="some-made-up-token"
Expand Down
4 changes: 2 additions & 2 deletions heat-stack/app/routes/_heat+/single.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ import { EnergyUseHistory } from '../../components/ui/heat/CaseSummaryComponents
import { HomeInformation } from '../../components/ui/heat/CaseSummaryComponents/HomeInformation.tsx'
import HeatLoadAnalysis from './heatloadanalysis.tsx'
import { Button } from '#/app/components/ui/button.tsx'
import { createMemoryUploadHandler } from '@remix-run/server-runtime/dist/upload/memoryUploadHandler'
import { parseMultipartFormData } from '@remix-run/server-runtime/dist/formData'
import { createMemoryUploadHandler } from '@remix-run/server-runtime/dist/upload/memoryUploadHandler.js'
import { parseMultipartFormData } from '@remix-run/server-runtime/dist/formData.js'

const nameMaxLength = 50
const addressMaxLength = 100
Expand Down
2 changes: 1 addition & 1 deletion heat-stack/app/utils/env.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from 'zod'
const schema = z.object({
NODE_ENV: z.enum(['production', 'development', 'test'] as const),
DATABASE_PATH: z.string(),
PYODIDE_PATH: z.string(),
// PYODIDE_PATH: z.string(),
DATABASE_URL: z.string(),
SESSION_SECRET: z.string(),
INTERNAL_COMMAND_TOKEN: z.string(),
Expand Down

0 comments on commit 2741f8f

Please sign in to comment.