Skip to content

Instantly share code, notes, and snippets.

View infomiho's full-sized avatar
🐶

Mihovil Ilakovac infomiho

🐶
View GitHub Profile
@infomiho
infomiho / Dockerfile.repro
Last active February 15, 2026 18:17
wasp-cli 0.17.2 npm: 'chdir: invalid argument (Bad file descriptor)' — missing data/packages/ in published npm package
FROM --platform=linux/amd64 ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y curl build-essential ca-certificates && rm -rf /var/lib/apt/lists/*
# Install Node 20 via nvm (matching reporter's environment)
ENV NVM_DIR=/root/.nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \
. "$NVM_DIR/nvm.sh" && nvm install 20 && nvm alias default 20
@infomiho
infomiho / main.wasp
Created June 18, 2025 08:32
Wasp setting server URL dynamically
app axiosTest {
wasp: {
version: "^0.16.0"
},
title: "axios-test",
auth: {
userEntity: User,
methods: {
usernameAndPassword: {}, // This is a very naive implementation, use 'email' in production instead
@infomiho
infomiho / README.md
Created May 26, 2025 15:42
Wasp + Chakra v3

Executed the following commands:

wasp new chakra-v3
npm i @chakra-ui/react @emotion/react
npx @chakra-ui/cli snippet add

Added the App.tsx with the Chakra provider component.

Added {/* @ts-ignore */} in the two component files (there are some tsconfig.json incompatibilites between Wasp and Chakra v3.

const fs = require('fs');
const path = require('path');
/**
* Main function to sync redirects from the appropriate docs version to static directory
*/
function syncRedirects() {
try {
const isDevMode = checkDevelopmentMode();
const staticRedirectsPath = getStaticRedirectsPath();
@infomiho
infomiho / README.md
Last active June 27, 2025 00:54
Integrate Sentry into a Wasp app

Sentry is a useful tool to track errors that appear in your Wasp application.

Let's see how we can integrate it on the server and the client.

Sign up for Sentry

Make sure you have an account.

Create a project for your server app

@infomiho
infomiho / 0-MOVED.md
Last active February 13, 2026 10:37
Deploy Wasp apps to Caprover
@infomiho
infomiho / 0-MOVED.md
Last active February 13, 2026 10:36
Deploying Wasp apps to Coolify
@infomiho
infomiho / 0-MOVED.md
Last active February 13, 2026 10:35
Deploy Wasp to a VPS (reverse proxy + Docker)
@infomiho
infomiho / main.wasp
Last active July 31, 2024 10:11
Multiple domains for CORS - custom global middleware in Wasp 0.12+
app corsTest {
wasp: {
version: "^0.14.0"
},
title: "cors-test",
server: {
middlewareConfigFn: import { getGlobalMiddleware } from "@src/data",
}
}
@infomiho
infomiho / main.wasp
Created July 29, 2024 22:13
Custom login API endpoint
app apiAuth {
wasp: {
version: "^0.14.0"
},
title: "api-auth",
auth: {
userEntity: User,
onAuthFailedRedirectTo: "/login",
onAuthSucceededRedirectTo: "/",
methods: {