@@ -48,6 +60,7 @@ export default {
resource: '',
env_content: 'key1 = value1', // Default prompt text
static_content: 'No',
+ dockerfile_present :'No',
port: '',
stack: '',
build_cmds: '',
@@ -58,7 +71,7 @@ export default {
methods: {
submitForm() {
console.log(this.subdomain, this.resource_type, this.resource);
- create(this.subdomain, this.resource_type, this.resource, this.env_content, this.static_content, this.port, this.stack, this.build_cmds)
+ create(this.subdomain, this.resource_type, this.resource, this.env_content, this.static_content,this.dockerfile_present,this.port, this.stack, this.build_cmds)
.then((res) => {
console.log(res);
if (res === 'Submitted') {
diff --git a/src/frontend/src/style.css b/src/frontend/src/style.css
index 3454b6d..75ca6d2 100644
--- a/src/frontend/src/style.css
+++ b/src/frontend/src/style.css
@@ -27,7 +27,6 @@ body {
}
#app {
- max-width: 1280px;
margin: 0 !important;
padding: 0 !important;
text-align: center;
diff --git a/src/frontend/src/utils/create.ts b/src/frontend/src/utils/create.ts
index 018b9d6..f9b6d9a 100644
--- a/src/frontend/src/utils/create.ts
+++ b/src/frontend/src/utils/create.ts
@@ -60,6 +60,7 @@ export async function create(
resource: string,
env_content: string,
static_content: string,
+ dockerfile_present:string,
port: string,
stack: string,
build_cmds: string,
@@ -78,13 +79,15 @@ export async function create(
localStorage.getItem("provider")!,
);
const backend = import.meta.env.VITE_APP_BACKEND;
+ const domain = import.meta.env.VITE_APP_DOMAIN;
const rootUrl = new URL(`${backend}/map`);
const body = {
- "subdomain": subdomain + ".df.mdgspace.org",
+ "subdomain": subdomain + "." + domain,
"resource_type": resource_type,
"resource": resource,
"env_content": env_content,
"static_content": static_content,
+ "dockerfile_present":dockerfile_present,
"port": port,
"build_cmds": build_cmds,
"stack": stack,