Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jichi authored and jichi committed Mar 16, 2024
1 parent f31cc02 commit 6f984b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/welcomeScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export class WelcomeScene extends Phaser.Scene {
//fetch("http://your-server-url/welcome-message")
//
// Retrieve the base URL from the IALOBBY_SERVER environment variable
const baseUrl = IALOBBY_SERVER;
//const baseUrl = IALOBBY_SERVER;

// Request welcome message from the server
fetch(`${baseUrl}/welcome-message`)
fetch(`${IALOBBY_SERVER}/welcome-message`)
.then((response) => response.text())
.then((welcomeMessage) => {
// Display the received welcome message
Expand Down
9 changes: 1 addition & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path');
const webpack = require('webpack');

module.exports = {
entry: './src/app.ts',
Expand All @@ -19,11 +18,5 @@ module.exports = {
filename: 'app.js',
path: path.resolve(__dirname, 'dist')
},
mode: 'development',

plugins: [
new webpack.DefinePlugin({
IALOBBY_SERVER: JSON.stringify(process.env.IALOBBY_SERVER),
}),
],
mode: 'development'
};

0 comments on commit 6f984b9

Please sign in to comment.