Skip to content

Commit

Permalink
fix: codesandbox devcontainers (#1593)
Browse files Browse the repository at this point in the history
* fix: devcontainer for with-next

* fix: missing preview port in codesandbox configs

* fix: add devcontainer config to examples

* fix: remix example port

* fix: with-create-react-app start/dev standardization

* fix: vite example port

* fix: install siwe package in with-next-siwe-next-auth

* fix: legacy image error in with-next-mint-nft
  • Loading branch information
DanielSinclair committed Nov 1, 2023
1 parent ce2551d commit 94263cd
Show file tree
Hide file tree
Showing 22 changed files with 88 additions and 15 deletions.
5 changes: 4 additions & 1 deletion examples/with-create-react-app/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
4 changes: 2 additions & 2 deletions examples/with-create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"buffer": "npm:buffer@6.0.3"
},
"scripts": {
"dev": "npm run start",
"start": "PORT=3030 react-scripts start",
"dev": "react-scripts start",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!@rainbow-me)/\"",
"eject": "react-scripts eject"
Expand Down
5 changes: 4 additions & 1 deletion examples/with-next-app-i18n/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-next-app-i18n/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-next-app/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-next-app/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-next-custom-button/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-next-mint-nft/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-next-mint-nft/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
2 changes: 1 addition & 1 deletion examples/with-next-mint-nft/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Image from 'next/image';
import Image from 'next/legacy/image';
import { ConnectButton } from '@rainbow-me/rainbowkit';
import type { NextPage } from 'next';
import {
Expand Down
5 changes: 4 additions & 1 deletion examples/with-next-siwe-iron-session/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
12 changes: 9 additions & 3 deletions examples/with-next-siwe-next-auth/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"$schema": "https://codesandbox.io/schemas/tasks.json",
"setupTasks": ["yarn add @rainbow-me/rainbowkit@latest", "yarn build"],
"setupTasks": [
"yarn add @rainbow-me/rainbowkit@latest @rainbow-me/rainbowkit-siwe-next-auth@latest",
"yarn build"
],
"tasks": {
"install-dependencies": {
"name": "Install Dependencies",
"command": "yarn add @rainbow-me/rainbowkit@latest"
"command": "yarn add @rainbow-me/rainbowkit@latest @rainbow-me/rainbowkit-siwe-next-auth@latest"
},
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-next/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-next/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-remix/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 8000
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-remix/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}
5 changes: 4 additions & 1 deletion examples/with-vite/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"start-app": {
"name": "Run Dev Server",
"command": "yarn dev",
"runAtStart": true
"runAtStart": true,
"preview": {
"port": 5173
}
}
}
}
4 changes: 4 additions & 0 deletions examples/with-vite/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "RainbowKit Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:18"
}

2 comments on commit 94263cd

@vercel
Copy link

@vercel vercel bot commented on 94263cd Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 94263cd Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.