Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it work with mysql #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions db/schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

CREATE TABLE playing_with_neon (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
value FLOAT NOT NULL
);

INSERT INTO playing_with_neon (name, value) VALUES
('test', 1.0),
('test2', 2.0),
('test3', 3.0);
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### used for providing services when running tests in github actions
services:

mysql:
image: mysql:8
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- "./db:/docker-entrypoint-initdb.d"
4 changes: 2 additions & 2 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const nextConfig: NextConfig = {
patterns: [
// error is triggered during the build if the file is not there (but not actually used from here)
{
from: "node_modules/@subzerocloud/nodejs/subzero_wasm_bg.wasm",
from: "node_modules/@subzerocloud/rest/subzero_wasm_bg.wasm",
to: "server/app/rest/[...query]/subzero_wasm_bg.wasm",
},
// this is used on runtime
{
from: "node_modules/@subzerocloud/nodejs/subzero_wasm_bg.wasm",
from: "node_modules/@subzerocloud/rest/subzero_wasm_bg.wasm",
to: "server/vendor-chunks/subzero_wasm_bg.wasm",
},
],
Expand Down
Loading